Revision: 17203
          http://sourceforge.net/p/gate/code/17203
Author:   johann_p
Date:     2013-12-21 18:23:19 +0000 (Sat, 21 Dec 2013)
Log Message:
-----------
Convert from dos to unix line endings, allow gate.home to 
get set from environment variable GATE_HOME

Modified Paths:
--------------
    gate/trunk/plugins/Format_FastInfoset/build.xml

Modified: gate/trunk/plugins/Format_FastInfoset/build.xml
===================================================================
--- gate/trunk/plugins/Format_FastInfoset/build.xml     2013-12-20 17:17:12 UTC 
(rev 17202)
+++ gate/trunk/plugins/Format_FastInfoset/build.xml     2013-12-21 18:23:19 UTC 
(rev 17203)
@@ -1,85 +1,90 @@
-<project name="Format_FastInfoset" basedir="." default="build">
-  <!-- Prevent Ant from warning about includeantruntime not being set -->
-  <property name="build.sysclasspath" value="ignore" />
-  
-       <property file="build.properties" />
-
-       <property name="gate.home" location="../.." />
-       <property name="gate.lib" location="${gate.home}/lib" />
-       <property name="gate.jar" location="${gate.home}/bin/gate.jar" />
-       <property name="src.dir" location="src" />
-       <property name="classes.dir" location="classes" />
-       <property name="jar.location" location="format-fastinfoset.jar" />
-       <property name="lib" location="lib" />
-       <property name="doc.dir" location="doc" />
-       <property name="javadoc.dir" location="${doc.dir}/javadoc" />
-
-       <!-- Path to compile - includes gate.jar and GATE/lib/*.jar -->
-       <path id="compile.classpath">
-               <fileset dir="lib">
-                       <include name="**/*.jar" />
-               </fileset>
-               <pathelement location="${gate.jar}" />
-               <fileset dir="${gate.lib}">
-                       <include name="**/*.jar" />
-                       <include name="**/*.zip" />
-               </fileset>
-       </path>
-
-       <!-- create build directory structure -->
-       <target name="prepare">
-               <mkdir dir="${classes.dir}" />
-       </target>
-
-       <target name="resources" depends="prepare">
-               <!-- <copy todir="${classes.dir}/gate/resources" 
includeEmptyDirs="true">
-                       <fileset dir="${src.dir}/gate/resources" />
-               </copy> -->
-       </target>
-
-       <!-- compile the source -->
-       <target name="compile" depends="prepare, resources">
-               <javac classpathref="compile.classpath" srcdir="${src.dir}" 
destdir="${classes.dir}" debug="true" debuglevel="lines,source" source="1.5" 
target="1.5">
-               </javac>
-       </target>
-
-       <!-- create the JAR file -->
-       <target name="jar" depends="compile">
-               <jar destfile="${jar.location}" update="false" 
basedir="${classes.dir}" />
-       </target>
-
-       <!-- remove the generated .class files -->
-       <target name="clean.classes">
-               <delete dir="${classes.dir}" />
-       </target>
-
-       <!-- Clean up - remove .class and .jar files -->
-       <target name="clean" depends="clean.classes">
-               <delete file="${jar.location}" />
-       </target>
-
-       <!-- Build JavaDoc documentation -->
-       <target name="doc.prepare">
-               <mkdir dir="${javadoc.dir}" />
-       </target>
-
-       <target name="javadoc" depends="jar, doc.prepare">
-               <javadoc destdir="${javadoc.dir}" packagenames="*" 
classpathref="compile.classpath" encoding="UTF-8" windowtitle="Fast Infoset 
Document Format JavaDoc" source="1.6">
-                       <sourcepath>
-                               <pathelement location="${src.dir}" />
-                       </sourcepath>
-                       <link href="http://docs.oracle.com/javase/6/docs/api/"; 
/>
-                       <link href="http://gate.ac.uk/gate/doc/javadoc/"; />
-               </javadoc>
-       </target>
-
-       <!-- Targets used by the main GATE build file:
-         build: build the plugin - just calls "jar" target
-         test : run the unit tests - there aren't any
-         distro.prepare: remove intermediate files that shouldn't be in the
-                         distribution
-  -->
-       <target name="build" depends="jar" />
-       <target name="test" />
-       <target name="distro.prepare" depends="clean.classes" />
-</project>
+<project name="Format_FastInfoset" basedir="." default="build">
+  <!-- Prevent Ant from warning about includeantruntime not being set -->
+  <property name="build.sysclasspath" value="ignore" />
+
+       <property file="build.properties" />
+        <property environment="env" />
+        <condition property="gate.home" value="${env.GATE_HOME}">
+                <isset property="env.GATE_HOME" />
+        </condition>
+ 
+
+       <property name="gate.home" location="../.." />
+       <property name="gate.lib" location="${gate.home}/lib" />
+       <property name="gate.jar" location="${gate.home}/bin/gate.jar" />
+       <property name="src.dir" location="src" />
+       <property name="classes.dir" location="classes" />
+       <property name="jar.location" location="format-fastinfoset.jar" />
+       <property name="lib" location="lib" />
+       <property name="doc.dir" location="doc" />
+       <property name="javadoc.dir" location="${doc.dir}/javadoc" />
+
+       <!-- Path to compile - includes gate.jar and GATE/lib/*.jar -->
+       <path id="compile.classpath">
+               <fileset dir="lib">
+                       <include name="**/*.jar" />
+               </fileset>
+               <pathelement location="${gate.jar}" />
+               <fileset dir="${gate.lib}">
+                       <include name="**/*.jar" />
+                       <include name="**/*.zip" />
+               </fileset>
+       </path>
+
+       <!-- create build directory structure -->
+       <target name="prepare">
+               <mkdir dir="${classes.dir}" />
+       </target>
+
+       <target name="resources" depends="prepare">
+               <!-- <copy todir="${classes.dir}/gate/resources" 
includeEmptyDirs="true">
+                       <fileset dir="${src.dir}/gate/resources" />
+               </copy> -->
+       </target>
+
+       <!-- compile the source -->
+       <target name="compile" depends="prepare, resources">
+               <javac classpathref="compile.classpath" srcdir="${src.dir}" 
destdir="${classes.dir}" debug="true" debuglevel="lines,source" source="1.5" 
target="1.5">
+               </javac>
+       </target>
+
+       <!-- create the JAR file -->
+       <target name="jar" depends="compile">
+               <jar destfile="${jar.location}" update="false" 
basedir="${classes.dir}" />
+       </target>
+
+       <!-- remove the generated .class files -->
+       <target name="clean.classes">
+               <delete dir="${classes.dir}" />
+       </target>
+
+       <!-- Clean up - remove .class and .jar files -->
+       <target name="clean" depends="clean.classes">
+               <delete file="${jar.location}" />
+       </target>
+
+       <!-- Build JavaDoc documentation -->
+       <target name="doc.prepare">
+               <mkdir dir="${javadoc.dir}" />
+       </target>
+
+       <target name="javadoc" depends="jar, doc.prepare">
+               <javadoc destdir="${javadoc.dir}" packagenames="*" 
classpathref="compile.classpath" encoding="UTF-8" windowtitle="Fast Infoset 
Document Format JavaDoc" source="1.6">
+                       <sourcepath>
+                               <pathelement location="${src.dir}" />
+                       </sourcepath>
+                       <link href="http://docs.oracle.com/javase/6/docs/api/"; 
/>
+                       <link href="http://gate.ac.uk/gate/doc/javadoc/"; />
+               </javadoc>
+       </target>
+
+       <!-- Targets used by the main GATE build file:
+         build: build the plugin - just calls "jar" target
+         test : run the unit tests - there aren't any
+         distro.prepare: remove intermediate files that shouldn't be in the
+                         distribution
+  -->
+       <target name="build" depends="jar" />
+       <target name="test" />
+       <target name="distro.prepare" depends="clean.classes" />
+</project>

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to