Diff of /build.xml [bf8f3b] .. [d68696] Maximize Restore

  Switch to side-by-side view

--- a/build.xml
+++ b/build.xml
@@ -6,67 +6,22 @@
 -->
 
 <project name="LazyImporter" default="dist" basedir=".">
-  <!-- properties -->
-  <property name="jedit.install.dir" value="../.."/>
-  <property name="jar.name" value="${ant.project.name}.jar"/>
-  <property name="src.dir" value="src"/>
-  <property name="build.dir" value="build"/>
-  <property name="install.dir" value=".."/>
-  <property name="docs.dir" value="docs"/>
-	
-	<!-- define the class path -->
-  <path id="project.class.path">
-    <pathelement location="${jedit.install.dir}/jedit.jar"/>
-    <pathelement location="${src.dir}"/>
-  </path>
+	<property file="build.properties" />
+	<property file="../build.properties" />
 
-  <target name="init">
-    <mkdir dir="${build.dir}"/>
-  </target>
+	<!-- You should set this property in your build.properties to
+	     the location of the jedit "build-support/trunk" project
+	     checked out from jEdit's SVN repository -->
+	<property name="build.support" value="../build-support" />
 
-  <target name="compile" depends="init">
-    <javac srcdir="${src.dir}" destdir="${build.dir}" deprecation="on" includeJavaRuntime="yes">
-      <classpath refid="project.class.path"/>
-    </javac>
-  </target>
- 
-  <target name="dist" depends="compile">
-    
-    <!-- create installation directory -->
-    <mkdir dir="${install.dir}"/>
-    
-    <!-- create jar file -->
-    <jar jarfile="${install.dir}/${jar.name}">
-      
-      <!-- add compiled classes to jar -->
-      <fileset dir="${build.dir}"/>
-			
-      <!-- add any required files from the source directory (not java files) -->
-      <fileset dir="${src.dir}">
-        <include name="actions.xml"/>
-        <include name="**/*.props"/>
-        <include name="**/*.html"/>
-        <include name="**/*.jpg"/>
-      </fileset>
-      
-      <!-- add any documentation -->
-      <fileset dir="${docs.dir}">
-        <include name="**/*.xml"/>
-        <include name="**/*.props"/>
-        <include name="**/*.html"/>
-        <include name="**/*.gif"/>
-        <include name="**/*.jpg"/>
-      </fileset>
-		
-    </jar>
-  </target>
-	
-  <!-- cleans build directory -->
-  <target name="clean">
-    <delete dir="${build.dir}"/>
-    <delete>
-      <fileset dir="." includes="**/*~" defaultexcludes="no"/>
-    </delete>
-  </target>
+	<property name="dist.target" 			value="build" />
+    <property name="compiler.source"        value="1.6" />
+    <property name="compiler.target"        value="1.6" />
+    <property name="jedit.plugins.dir" value="${install.dir}" />
 
+	<import file="${build.support}/plugin-build.xml" />
+
+	<selector id="compileFiles">
+		<filename name="src/**/*.java" />
+	</selector>
 </project>