Plugin name doesn't appear in Cytoscape plugin menù

12 views
Skip to first unread message

Franktwis

unread,
Dec 17, 2009, 5:44:14 AM12/17/09
to cytoscape-discuss
Hi all,
I writed so many times on this forum and so much of you answered me
helping each time. Now my plugin is completed with a Java GUI. I
followed this steps:
1) compiled without warnings the jar file
2) opened the jar and inserted the manifest file:

Manifest-Version: 1.0
Ant-Version: Apache Ant 1.7.0
Created-By: Me
Cytoscape-Plugin: GraphCreate
Class-Path:

3) inserted the plugin.props file:

#plugin.props

# This props file should be filled out and included in the plugin jar
file. This props file will be used
# to put information into the Plugin Manager about the plugin

# -- The following properties are REQUIRED -- #

# The plugin name that will be displayed to users, white space within
name is not allowed
pluginName=GraphCreate

# Description used to give users information about the plugin such as
what it does.
# Html tags are encouraged for formatting purposes.
pluginDescription=Information about the plugin that will be displayed
to users.<br>Please use html tags for all formatting and do not add
newlines.<p>

# Plugin version number, this must be two numbers separated by a
decimlal. Ex. 0.2, 14.03
pluginVersion=1.0

# Compatible Cytoscape version. If there are more than one version,
seperate by ",".
cytoscapeVersion=2.5,2.6

# Category, use one of the categories listed on the http://cytoscape.org/plugins2.php
site
pluginCategory=Network Inference

# -- The following properties are OPTIONAL -- #

# URL to a website that gives more information about your plugin, Ex.
http://my-lab-site.org
#projectURL=http://my-lab-site.org/myCytoscapePlugin

# List of authors. Note each author and institution pair are
separated by a : (colon)
# each additional author institution pair must be separated from other
pairs bye a ; (semicolon)
pluginAuthorsInstitutions=Francesco;

# Date this plugin/plugin version was released
releaseDate=November 16, 2009

# If this plugin is never meant to be downloaded except as part of a
plugin (not common) add this property. Default is "no"
themeOnly=no

4) Zipped the file with winRar: selecting "Compress with zip" and
changing its extension in .jar
5) cut and paste the ajr in the plugin directory
6) Cytoscape is open but the plugin name doesn't appear in the plugin
menù

Where am I wrong?
thanks for reading

fengbo xie

unread,
Dec 17, 2009, 6:11:46 AM12/17/09
to cytoscap...@googlegroups.com
Do you put the manifest file in META-INF folder and plugin.pros in the
right place?
Recommend again: check out an official plugin from the svn repository
, learn from it on how to layout a plugin's folders and using Ant to
build the plugin's jar.
WinRAR sucks.

BTW: the file name "MANIFEST.MF" should in upper case.

> --
>
> You received this message because you are subscribed to the Google Groups "cytoscape-discuss" group.
> To post to this group, send email to cytoscap...@googlegroups.com.
> To unsubscribe from this group, send email to cytoscape-disc...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/cytoscape-discuss?hl=en.
>
>
>

Franktwis

unread,
Dec 17, 2009, 9:45:37 AM12/17/09
to cytoscape-discuss
The manifest file has name in upper case and is in GraphCreate->META-
INF.
plugin.props is in the same folder of .class files (GraphCreate)
I copied the files from plugin downloaded from the site, and adapting
them to my jar as is writed on the plugin tutorial.
I create the jar file with eclipse, then added the manifest and plugin
file unzipping the jar.
I'll try using Ant if it's better.
thanks
> > # Category, use one of the categories listed on thehttp://cytoscape.org/plugins2.php

fengbo xie

unread,
Dec 17, 2009, 9:58:39 AM12/17/09
to cytoscap...@googlegroups.com
Eclipse works too, you can specify manifest file while packaging .

Peng-Liang Wang

unread,
Dec 17, 2009, 12:27:50 PM12/17/09
to cytoscap...@googlegroups.com
You can also look at the sample plugins at http://cytoscape.wodaklab.org/wiki/plugin_developer_tutorial
Download a plugin and look at the build.xml file.
 
Peng


 

Franktwis

unread,
Dec 17, 2009, 1:42:44 PM12/17/09
to cytoscape-discuss
The build.xml file is necessary?
How can I create it?
I have downloaded a plugin and found this following. Is necessary to
overwrite it with my datas? Where have I to add this file?:

<!--
=================================================================== --
>
<!-- Plugin build file -->
<!--
=================================================================== --
>

<project name="tutorial01" default="jar" basedir=".">

<!--
=================================================================== --
>
<!-- Initialization
target -->
<!--
=================================================================== --
>
<target name="init">
<property name="plugin_name" value="tutorial01"/>
<property name="plugin_class"
value="cytoscape.tutorial01.Tutorial01"/>
<property name="project.jar" value="${plugin_name}.jar"/>
<property name="version" value="1.1"/>
<property name="year" value="2008"/>

<echo message="Building plugin ${plugin_name} version $
{version}..."/>

<!-- Define the plugin directories -->
<property name="root.dir" value="."/>
<property name="src.dir" value="${root.dir}/src"/>
<property name="build.dir" value="${root.dir}/build"/>
<property name="images.dir" value="${root.dir}/images"/>
<property name="manifest.dir" value="${root.dir}/manifest"/>
<property name="lib.dir" value="${root.dir}/lib"/>

<!-- Define the Cytoscape directories -->
<property name="cytoscape.dir" value="../../cytoscape"/>
<property name="cytoscape.lib.dir" value="${cytoscape.dir}/lib"/>
<property name="cytoscape.plugin.dir" value="${cytoscape.dir}/
plugins"/>

<!-- Inheritable properties -->
<property name="debug" value="on"/>
<property name="optimize" value="off"/>
<property name="deprecation" value="on"/>
<property name="nowarn" value="true"/>
<property name="fork" value="false"/>

<!-- Check the availability of some files -->
<available file="${cytoscape.dir}/cytoscape.jar"
property="cytoscape.present"/>
<available file="${root.dir}/plugin.props"
property="plugin.prop.present"/>
<available file="${images.dir}" property="images.dir.present"/>

<!-- Define the java class path -->
<path id="project.class.path">
<pathelement location="${cytoscape.dir}/cytoscape.jar"/>
<pathelement path="${java.class.path}/"/>
</path>

</target>

<!--
=================================================================== --
>
<!-- Compiles the project
-->
<!--
=================================================================== --
>
<target name="compile" depends="init" >

<echo message="COMPILE ${plugin_name} ..."/>

<mkdir dir="${build.dir}"/>
<javac srcdir="${src.dir}"
excludes="${excludes}"
classpathref="project.class.path"
destdir="${build.dir}"
debug="${debug}"
nowarn="${nowarn}"
deprecation="${deprecation}"
optimize="${optimize}"
fork="${fork}"/>
</target>

<!--
=================================================================== --
>
<!-- Creates the plugin jar
file -->
<!--
=================================================================== --
>
<target name="jar" depends="compile, copy_plugin_prop, copy_images"
>

<jar destfile="${project.jar}">
<manifest> <attribute name="Cytoscape-Plugin" value="$
{plugin_class}"/> </manifest>
<fileset dir="${build.dir}" includes="**"/>
</jar>

</target>

<!-- If plugin.prop exist, copy it to build directory -->
<target name="copy_plugin_prop" if="plugin.prop.present">
<copy todir="${build.dir}/cytoscape/tutorial01" file="${root.dir}/
plugin.props"/>
</target>

<!-- If there are any image files, copy them to build directory --
>
<target name="copy_images" if="images.dir.present">
<copy todir="${build.dir}">
<fileset dir="${images.dir}"/>
</copy>
</target>

<!--
=================================================================== --
>
<!-- Clean up, get back to original
state -->
<!--
=================================================================== --
>
<target name="clean" depends="init">
<delete dir="${build.dir}"/>
</target>

</project>

<!-- End of file -->

On 17 Dic, 18:27, Peng-Liang Wang <plw...@bioeng.ucsd.edu> wrote:
> You can also look at the sample plugins athttp://cytoscape.wodaklab.org/wiki/plugin_developer_tutorial


> Download a plugin and look at the build.xml file.
>
> Peng
>

> > cytoscape-disc...@googlegroups.com<cytoscape-discuss%2Bunsu...@googlegroups.com>

Peng-Liang Wang

unread,
Dec 17, 2009, 1:54:22 PM12/17/09
to cytoscap...@googlegroups.com
Cytoscape 2.x use Ant to build the project. You may look at "Ant" for more detail. You can copy the existing build.xml and customize it to meet your need.
 
Peng

To unsubscribe from this group, send email to cytoscape-disc...@googlegroups.com.

Franktwis

unread,
Dec 21, 2009, 6:37:02 AM12/21/09
to cytoscape-discuss
Ok. I tried to build my project with eclipse creating a package for my
files and building it, but nothing happens. When I put the .jar in the
plugin folder Cytoscape cannot identify it. I believe now that I must
compile it with ANT.
I tried copying the build.xml file but the result is the same.
Thanks
Francesco

On 17 Dic, 19:54, Peng-Liang Wang <plw...@bioeng.ucsd.edu> wrote:
> Cytoscape 2.x use Ant to build the project. You may look at "Ant" for more
> detail. You can copy the existing build.xml and customize it to meet your
> need.
>
> Peng
>

> > > > cytoscape-disc...@googlegroups.com<cytoscape-discuss%2Bunsubscr i...@googlegroups.com>
> > <cytoscape-discuss%2Bunsu...@googlegroups.com<cytoscape-discuss%252Buns ubsc...@googlegroups.com>


>
> >  > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/cytoscape-discuss?hl=en.
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "cytoscape-discuss" group.
> > To post to this group, send email to cytoscap...@googlegroups.com.
> > To unsubscribe from this group, send email to

> > cytoscape-disc...@googlegroups.com<cytoscape-discuss%2Bunsubscr i...@googlegroups.com>

Reply all
Reply to author
Forward
0 new messages