-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathbuild.xml
executable file
·50 lines (37 loc) · 1.42 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
48
49
50
<?xml version="1.0" encoding="ISO-8859-1"?>
<project name="deploy" default="jar_plugin" basedir=".">
<property name="plugname" value="BackgroundImage"/>
<property name="project.path" value="."/>
<property name="build.path" value="${project.path}/build"/>
<property name="idea.path" value="/Applications/IntelliJ IDEA 10.app"/>
<target name="clean">
<delete dir="${build.path}"/>
<delete dir="${project.path}/classes"/>
</target>
<target name="jar_plugin">
<mkdir dir="${build.path}" />
<mkdir dir="${project.path}/classes"/>
<copy todir="${build.path}/META-INF">
<fileset dir="${project.path}/src/META-INF"/>
<fileset file="build.xml" />
</copy>
<copy todir="${build.path}/images">
<fileset dir="${project.path}/src/images"/>
</copy>
<javac srcdir="${project.path}/src" destdir="${project.path}/classes" >
<classpath path="${idea.path}/lib/openapi.jar"/>
<classpath path="${idea.path}/lib/jdom.jar"/>
<classpath path="${idea.path}/lib/util.jar"/>
</javac>
<copy todir="${build.path}/org">
<fileset dir="${project.path}/classes/org"/>
</copy>
<copy todir="${build.path}/src">
<fileset dir="${project.path}/src"/>
</copy>
<jar jarfile="${build.path}/${plugname}.jar" basedir="${build.path}"
excludes="${plugname}.jar"
/>
</target>
<target name="rebuild" depends="clean, jar_plugin"/>
</project>