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"/>
24 <property name="build.classes.dir" value="classes"/>
25 <property name="src.dir" value="src"/>
26 <property name="build.compiler" value="modern"/>
29 <target name="prepare" depends="init">
30 <mkdir dir="${build.classes.dir}"/>
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"/>
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"/>
43 jarfile="${jar.file}">
44 <fileset dir="${build.classes.dir}"/>
46 <include name="META-INF/plugin.xml"/>
49 <include name="intentionDescriptions/**/*"/>
52 <include name="**/*.properties"/>
55 <mkdir dir="${idea.plugin.dir}"/>
56 <copy file="${jar.file}" todir="${idea.plugin.dir}" overwrite="true" />
59 <target name="clean" depends="init" description="Cleans up the distribution">
60 <delete dir="${build.classes.dir}"/>
61 <delete file="${jar.file}"/>
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">
69 <include name="*/**"/>
74 <target name="sync" depends="clean" description="Dump it to the watch">
75 <delete file="${jar.file}"/>
76 <sync todir="E:\IntentionPowerPack">
78 <include name="**/*"/>