1 | <?xml version="1.0" encoding="UTF-8"?> |
---|
2 | <project name="export-executable" default="build" basedir="."> |
---|
3 | |
---|
4 | <property name="output" value="bin" /> |
---|
5 | <property name="jar_file" value="ecj.jar" /> |
---|
6 | |
---|
7 | <target name="build"> |
---|
8 | <delete file="${basedir}/${jar_file}" failonerror="no" /> |
---|
9 | <delete dir="${output}" failonerror="no" /> |
---|
10 | <mkdir dir="${output}" /> |
---|
11 | |
---|
12 | <javac srcdir="${basedir}" destdir="${output}" |
---|
13 | debuglevel="lines,source" |
---|
14 | source="1.3" |
---|
15 | target="1.2" |
---|
16 | excludes="org/eclipse/jdt/internal/compiler/tool/*,**/apt/**"> |
---|
17 | </javac> |
---|
18 | |
---|
19 | <zip destfile="${basedir}/${jar_file}"> |
---|
20 | <fileset dir="${output}" /> |
---|
21 | <fileset dir="${basedir}"> |
---|
22 | <include name="about.html"/> |
---|
23 | <include name="**/*.rsc"/> |
---|
24 | <include name="META-INF/**"/> |
---|
25 | <include name="**/*.properties"/> |
---|
26 | <exclude name="META-INF/eclipse.inf"/> |
---|
27 | </fileset> |
---|
28 | </zip> |
---|
29 | <delete dir="${output}" /> |
---|
30 | </target> |
---|
31 | </project> |
---|