PageRenderTime 121ms CodeModel.GetById 40ms app.highlight 2ms RepoModel.GetById 58ms app.codeStats 0ms

/build.xml

https://bitbucket.org/atlassian/jetbrains-bitbucket-connector/
XML | 76 lines | 68 code | 8 blank | 0 comment | 0 complexity | 117b218656dae424114e18d024e8517f MD5 | raw file
 1<project basedir="." default="dist">
 2
 3    <property name="idea.dir" value="/opt/java/idea-IC-123.123"/>
 4    <property name="idea.lib" value="${idea.dir}/lib"/>
 5
 6    <path id="javac2.classpath">
 7        <pathelement location="${idea.lib}/javac2.jar"/>
 8        <pathelement location="${idea.lib}/jdom.jar"/>
 9        <pathelement location="${idea.lib}/asm.jar"/>
10        <pathelement location="${idea.lib}/asm4-all.jar"/>
11        <pathelement location="${idea.lib}/asm-commons.jar"/>
12        <pathelement location="${idea.lib}/jgoodies-forms.jar"/>
13    </path>
14    <taskdef name="javac2" classname="com.intellij.ant.Javac2" classpathref="javac2.classpath"/>
15
16
17	<target name="dist">
18        <delete dir="build"/>
19        <mkdir dir="build"/>
20        <mkdir dir="build/classes"/>
21
22		<javac2 srcdir="src" destdir="build/classes" target="1.5">
23            <classpath>
24                <fileset dir="${idea.dir}/lib">
25                    <include name="*.jar"/>
26                </fileset>
27                <fileset dir="${java.home}/lib">
28                    <include name="*.jar"/>
29                </fileset>
30                <fileset dir="${idea.dir}/plugins/hg4idea/lib">
31                    <include name="hg4idea.jar"/>
32                </fileset>
33                <fileset dir="${idea.dir}/plugins/git4idea/lib">
34                    <include name="git4idea.jar"/>
35                </fileset>
36                <fileset dir="${basedir}/lib">
37                    <include name="*.jar"/>
38                </fileset>
39                <fileset dir="${idea.dir}/plugins/tasks/lib">
40                    <include name="tasks-api.jar"/>
41                    <include name="tasks-core.jar"/>
42                </fileset>
43            </classpath>
44        </javac2>
45
46        <jar destfile="build/bitbucket.jar">
47            <fileset dir="build/classes">
48                <include name="**/*"/>
49            </fileset>
50            <fileset dir="src">
51                <include name="**/*.properties"/>
52                <include name="**/*.png"/>
53            </fileset>
54            <fileset dir="images">
55                <include name="**/*.png"/>
56            </fileset>
57            <fileset dir=".">
58                <include name="META-INF/*"/>
59            </fileset>
60        </jar>
61
62        <mkdir dir="build/Bitbucket/lib"/>
63        <copy todir="build/Bitbucket/lib">
64            <fileset dir="lib">
65                <include name="*.jar"/>
66            </fileset>
67            <fileset dir="build">
68                <include name="*.jar"/>
69            </fileset>
70        </copy>
71
72        <zip basedir="build" destfile="build/bitbucket.zip">
73            <include name="Bitbucket/lib/*.jar"/>
74        </zip>
75	</target>
76</project>