Permalink
Browse files

cleaned up build.xml and build.properties.example

  • Loading branch information...
1 parent 5cd071b commit 71ba21967575013900ec259239b6b8eedd426731 @sickill committed Oct 31, 2009
Showing with 15 additions and 29 deletions.
  1. +10 −3 build.properties.example
  2. +5 −26 build.xml
View
@@ -1,5 +1,12 @@
# The root of your jEdit install. Folder must contain jedit.jar in root.
-jedit.install.dir=/home/username/jedit/current
+jedit.install.dir=${user.home}/jedit/current
+
+# User settings directory
+jedit.user.home=${user.home}/.jedit
+
+# location where your jars are installed
+install.dir=${jedit.user.home}/jars
+
+# Location where the plugins are
+jedit.plugins.dir=${install.dir}
-# User installed jars directory
-install.dir=HOME_DIR_REPLACE/.jedit/jars
View
@@ -4,47 +4,28 @@
This is a build.xml file for building the FinishHim plugin.
The 'dist' target compiles the plugin and creates the JAR file.
- Before running the 'dist' target, you will need to generate the
- documentation using one of these two targets:
-
- - 'docs-xalan': Creates documentation using the Xalan XSLT processor
- - 'docs-xsltproc': Creates documentation using the xsltproc tool
-
- To use it for building your own plugin, make these changes:
-
- - Change definition of 'jar.name' to the name of your plugin's JAR file
- - If necessary, add any dependencies to the 'project.class.path'
- definition
- - If necessary, change the list of files in the 'dist' targtet
- - If necessary, change the 'docs-xalan' and 'docs-xsltproc' targets
- accordingly.
-->
<project name="finish-him" default="dist" basedir=".">
- <property file="build.properties"/>
<property file="../build.properties"/>
+ <property file="build.properties"/>
<property name="jar.name" value="${ant.project.name}.jar"/>
- <property name="version" value="0.1"/>
+ <property name="version" value="0.9"/>
<property name="src.dir" value="."/>
<property name="build.dir" value="build"/>
- <property name="jedit.install.dir" value=".."/>
- <property name="jedit.jars.dir" value="${jedit.install.dir}/jars"/>
-
<property environment="env"/>
- <property name="scala.lib.dir" location="${env.SCALA_HOME}/lib"/>
-
<path id="scala.classpath">
- <pathelement location="${scala.lib.dir}/scala-compiler.jar"/>
- <pathelement location="${scala.lib.dir}/scala-library.jar"/>
+ <pathelement location="${jedit.plugins.dir}/ScalacPlugin.jar"/>
</path>
<path id="project.classpath">
<path refid="scala.classpath" />
- <pathelement location="${jedit.install.dir}/jedit.jar"/>
+ <pathelement location="${jedit.install.dir}/jedit.jar"/>
+ <pathelement location="${jedit.plugins.dir}/ScalacPlugin.jar"/>
</path>
<target name="init">
@@ -67,7 +48,6 @@
<target name="dist" depends="build">
- <!-- <mkdir dir="${install.dir}"/> -->
<jar jarfile="${install.dir}/${jar.name}">
<fileset dir="${build.dir}"/>
<fileset dir="${src.dir}">
@@ -83,7 +63,6 @@
<delete file="${srcfile}"/>
<delete>
<fileset dir="." includes="**/*~" defaultexcludes="no"/>
- <!--fileset dir="." includes="**/*.html" defaultexcludes="no"/-->
</delete>
</target>
</project>

0 comments on commit 71ba219

Please sign in to comment.