-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.xml
More file actions
64 lines (50 loc) · 2.61 KB
/
build.xml
File metadata and controls
64 lines (50 loc) · 2.61 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<project name="TAP idea plugin, scripted build file" default="package" basedir=".">
<property file="build.properties" />
<!-- set global properties for this build -->
<property environment="env"/>
<property name="src" location="src"/>
<property name="sms-templates" location="templates/sms"/>
<property name="build" location="build"/>
<property name="lib-dir" location="lib"/>
<property name="idea.community.build" location="${env.IDEA_IC}" />
<taskdef name="javac2" classname="com.intellij.ant.Javac2">
<classpath>
<pathelement location="${idea.community.build}/lib/javac2.jar"/>
<pathelement location="${idea.community.build}/lib/asm-all.jar" />
<pathelement location="${idea.community.build}/lib/forms_rt.jar"/>
<fileset dir="${idea.community.build}" includes="**/*.jar" />
</classpath>
</taskdef>
<target name="init">
<!-- Create the time stamp -->
<tstamp/>
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}"/>
<zip destfile="${build}/resources/TAP_Sample_Service_Application.zip" basedir="${sms-templates}" includes="**/*.*"/>
<echo message="Using IDEA build from: ${idea.community.build}" />
</target>
<target name="compile" depends="clean,init" description="compile the source ">
<!-- Compile the java code from ${src} into ${build} -->
<javac2 excludes="**/resolve/references/*Reference.java" srcdir="${src}" destdir="${build}" verbose="false" debug="true" source="1.6" target="1.6" includeantruntime="false" >
<classpath>
<fileset dir="${idea.community.build}" includes="**/*.jar" />
<fileset dir="${lib-dir}" includes="**/*.jar" />
</classpath>
<compilerarg value="-Xlint:deprecation" />
</javac2>
</target>
<target name="package" depends="compile" description="generate the distribution">
<!-- Create the distribution archive -->
<jar jarfile="${build}/package/${tap.idea.plugin.name}/lib/${tap.idea.plugin.name}.jar" update="true">
<fileset dir="${build}" includes="**/*.*" />
<fileset dir="${src}" excludes="**/*.java" />
</jar>
<copy todir="${build}/package/${tap.idea.plugin.name}/lib">
<fileset dir="${lib-dir}" excludes=".keepme"/>
</copy>
<zip destfile="${build}/${tap.idea.plugin.name}.zip" basedir="${build}/package" includes="**/*.*"/>
</target>
<target name="clean" description="clean up">
<delete dir="${build}" />
</target>
</project>