source: trunk/src/examples/plugins/build.xml @ 3953

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