Last change
on this file since 3763 was
3763,
checked in by Martin Svensson, 16 years ago
|
References #364, Added instructions how to make ant put base-plugins.xml and base-configurations.xml
in the plugin jar-file when building an external plugin.
Also updated the examples about this.
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Date Id
|
File size:
1008 bytes
|
Line | |
---|
1 | <?xml version="1.0" encoding="UTF-8"?> |
---|
2 | <project |
---|
3 | name="ExamplePlugins" |
---|
4 | default="build.plugin" |
---|
5 | basedir="." |
---|
6 | > |
---|
7 | |
---|
8 | <!-- variables used --> |
---|
9 | <property name="plugin.name" value="ExamplePlugins" /> |
---|
10 | <property name="src" value="src" /> |
---|
11 | <property name="bin" value="bin" /> |
---|
12 | |
---|
13 | <!-- set up classpath for compiling --> |
---|
14 | <path id="classpath"> |
---|
15 | <fileset dir="lib"> |
---|
16 | <include name="**/*.jar"/> |
---|
17 | </fileset> |
---|
18 | </path> |
---|
19 | |
---|
20 | <!-- main target --> |
---|
21 | <target |
---|
22 | name="build.plugin" |
---|
23 | description="Compiles the plugin and put in jar" |
---|
24 | > |
---|
25 | <javac |
---|
26 | encoding="ISO-8859-1" |
---|
27 | srcdir="${src}" |
---|
28 | destdir="${bin}" |
---|
29 | debug="true" |
---|
30 | classpathref="classpath"> |
---|
31 | </javac> |
---|
32 | <jar |
---|
33 | jarfile="${plugin.name}.jar" |
---|
34 | basedir="bin" |
---|
35 | manifest="MANIFEST.MF" |
---|
36 | > |
---|
37 | <metainf file="./base-plugins.xml"></metainf> |
---|
38 | <metainf file="./base-configurations.xml"></metainf> |
---|
39 | </jar> |
---|
40 | </target> |
---|
41 | </project> |
---|
Note: See
TracBrowser
for help on using the repository browser.