ToolWindow: resize take 1
[fedora-idea.git] / plugins / InspectionGadgets / build.xml
blobeb431018d492fbd60b58bd7415d0f14f6b59f936
1 <?xml version="1.0" encoding="ISO-8859-1"?>
3 <project name="InspectionGadgets" default="compile">
4     <taskdef name="javac2" classname="com.intellij.ant.Javac2" classpathref="project.class.path"/>
5     <property name="src.dir" value="src"/>
6     <property name="idea.dir" value="\Applications\Demetra"/>
7     <property name="idea.plugin.dir" value="\Users\dgriffith\Library\Application Support\IntelliJIdea60"/>
8     <property name="debug" value="true"/>
9     <property name="optimize" value="off"/>
10     <property name="deprecation" value="off"/>
11     <property name="project.fullname" value="InspectionGadgets"/>
12     <property name="project.version" value="1.0"/>
13     <property name="jar.file" value="InspectionGadgets.jar"/>
14     <property name="resources.file" value="resources_en.jar"/>
15     <property name="dist.zip.file" value="${project.fullname}.${project.version}.zip"/>
17     <path id="project.class.path">
18         <pathelement location="${idea.dir}/lib/openAPI.jar"/>
19         <pathelement location="${idea.dir}/lib/idea.jar"/>
20         <pathelement location="${idea.dir}/lib/jdom.jar"/>
21         <pathelement location="${idea.dir}/lib/extensions.jar"/>
22     </path>
24     <target name="init">
25         <property name="build.classes.dir" value="classes"/>
26         <property name="src.dir" value="src"/>
27         <property name="build.compiler" value="modern"/>
28     </target>
30     <target name="prepare" depends="init">
31         <mkdir dir="${build.classes.dir}"/>
32     </target>
34     <target name="compile" depends="prepare">
35         <javac2 srcdir="${src.dir}" destdir="${build.classes.dir}" includes="com/siyeh/**" debug="${debug}">
36             <classpath refid="project.class.path"/>
37         </javac2>
38     </target>
40     <target name="deploy" depends="clean, compile" description="deploy the plugin">
41         <delete file="${jar.file}"/>
42         <jar
43             jarfile="${jar.file}">
44             <fileset dir="${build.classes.dir}"/>
45             <fileset dir="${src.dir}">
46                 <include name="META-INF/plugin.xml"/>
47             </fileset>
49         </jar>
50         <delete file="${resources.file}"/>
51         <jar
52             jarfile="${resources.file}">
53             <fileset dir="${src.dir}">
54                 <include name="inspectionDescriptions/**"/>
55             </fileset>
56             <fileset dir="src">
57                 <include name="com/siyeh/InspectionGadgetsBundle.properties"/>
58             </fileset>
60         </jar>
61         <mkdir dir="${idea.plugin.dir}"/>
62         <mkdir dir="${idea.plugin.dir}/InspectionGadgets"/>
63         <mkdir dir="${idea.plugin.dir}/InspectionGadgets/lib"/>
64         <copy file="${jar.file}" todir="${idea.plugin.dir}/InspectionGadgets/lib" overwrite="true" />
65         <copy file="${resources.file}" todir="${idea.plugin.dir}/InspectionGadgets/lib" overwrite="true" />
66     </target>
68     <target name="clean" depends="init" description="Cleans up the distribution">
69         <delete failonerror="false"  dir="${build.classes.dir}"/>
70         <delete failonerror="false"  file="${jar.file}"/>
71     </target>
74 </project>