Merge branch 'master' of git@git.labs.intellij.net:idea/community
[fedora-idea.git] / plugins / IntentionPowerPak / build.xml
blob323822e25bfca34265e826f63c06489c86020f95
1 <?xml version="1.0" encoding="ISO-8859-1"?>
3 <project name ="IntentionPowerPack" default ="compile">
5     <property name="src.dir" value="src"/>
6     <property name="idea.dir" value="c:/Demetra"/>
7     <property name="idea.plugin.dir" value="C:\Documents and Settings\dgriffith\.IntelliJIdea60\config\plugins"/>
9     <property name="debug" value="true"/>
10     <property name="optimize" value="off"/>
11     <property name="deprecation" value="off"/>
12     <property name="project.fullname" value="IntentionPowerPack"/>
13     <property name="project.version" value="1.0"/>
14     <property name="jar.file" value="ipp.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     </path>
23     <target name="init">
24         <property name="build.classes.dir" value="classes"/>
25         <property name="src.dir" value="src"/>
26         <property name="build.compiler" value="modern"/>
27     </target>
29     <target name="prepare" depends="init">
30         <mkdir dir="${build.classes.dir}"/>
31     </target>
33     <target name="compile" depends="prepare">
34         <javac srcdir="${src.dir}" destdir="${build.classes.dir}" includes="com/siyeh/**" debug="${debug}">
35             <classpath refid="project.class.path"/>
36         </javac>
37     </target>
39     <target name="deploy" depends="clean, compile" description="deploy the plugin">
40         <delete file="${jar.file}"/>
41         <copy file = "${src.dir}/IPPIcon.png" todir="${build.classes.dir}/com/siyeh/ipp"/>
42         <jar
43             jarfile="${jar.file}">
44             <fileset dir="${build.classes.dir}"/>
45             <fileset dir=".">
46                 <include name="META-INF/plugin.xml"/>
47             </fileset>
48             <fileset dir="src">
49                 <include name="intentionDescriptions/**/*"/>
50             </fileset>
51             <fileset dir="src">
52                 <include name="**/*.properties"/>
53             </fileset>
54         </jar>
55         <mkdir dir="${idea.plugin.dir}"/>
56         <copy file="${jar.file}" todir="${idea.plugin.dir}" overwrite="true" />
57     </target>
59     <target name="clean" depends="init" description="Cleans up the distribution">
60         <delete dir="${build.classes.dir}"/>
61         <delete file="${jar.file}"/>
62     </target>
64     <target name="ship" depends="init" description="Cleans up the distribution">
65         <delete dir="${build.classes.dir}"/>
66         <move file="${jar.file}" todir="C:\"/>
67         <zip zipfile="C:\IntentionPowerPack.zip">
68             <fileset dir=".">
69                 <include name="*/**"/>
70             </fileset>
71         </zip>
72     </target>
74     <target name="sync" depends="clean" description="Dump it to the watch">
75         <delete file="${jar.file}"/>
76         <sync todir="E:\IntentionPowerPack">
77         <fileset dir=".">
78             <include name="**/*"/>
79         </fileset>
80         </sync>
81     </target>
82 </project>