-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
executable file
·47 lines (42 loc) · 1.43 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<project name="Telemicroscopy_Plugin" default="main" basedir=".">
<description>
Plugin_Telemicroscopia: build file
</description>
<property name="src" location="src" />
<property name="build" location="bin" />
<property name="dist" location="dist" />
<property name="pluginsDir" location="$basedir/../../AppTm4l/plugins/" />
<property name="user.name" value="ehas" />
<target name="main" depends="deploy" description="Main target">
<echo>
Building and deploying the .jar file
</echo>
</target>
<target name="deploy" depends="build" description="Copy the distribution to AppTm4l plugins directory">
<copy file="telemicroscopy_plugin.jar" toDir="${pluginsDir}" />
<copy toDir="${pluginsDir}">
<fileset dir="lib">
<include name="**.jar"/>
<exclude name="ij.jar"/>
</fileset>
</copy>
</target>
<target name="build" depends="compile" description="Generate the distribution">
<jar jarfile="telemicroscopy_plugin.jar">
<fileset dir="${build}" includes="**/*.*" />
<manifest>
<attribute name="Built-By" value="${user.name}"/>
</manifest>
</jar>
</target>
<target name="compile" description="Compile the source code">
<javac srcdir="." destdir="bin">
<classpath>
<fileset dir="lib">
<include name="**.jar"/>
</fileset>
<pathelement location="/usr/share/java/v4l4j.jar"/>
</classpath>
</javac>
</target>
</project>