Permalink
Browse files

add headers and ant build files

  • Loading branch information...
Hsiao Su Hsiao Su
Hsiao Su authored and Hsiao Su committed Jun 18, 2011
1 parent 5c8cf83 commit f98532843e9d1aec2bf302ca85ef33ba31386594
View
@@ -0,0 +1 @@
+*.class
View
Binary file not shown.
View
@@ -0,0 +1,24 @@
+# build.properties: Ant properties for building the app
+#
+# Copyright (c)2005-2006 Mark Logic Corporation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# The use of the Apache License does not indicate that this project is
+# affiliated with the Apache Software Foundation.
+#
+
+java.library.system=/usr/share/java
+java.library.user=${env.HOME}/lib/java
+
+# end build.properties
View
@@ -0,0 +1,61 @@
+<?xml version="1.0"?>
+<!--
+/*
+ * Copyright (c)2005-2006 Mark Logic Corporation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * The use of the Apache License does not indicate that this project is
+ * affiliated with the Apache Software Foundation.
+ */
+-->
+<project name="sparql2xquery" basedir="." default="jar">
+ <property environment="env"/>
+ <property name="name" value="sparql2xquery"/>
+ <property file="build.properties"/>
+
+ <property name="src.dir" value="src"/>
+ <property name="dist.dir" value="bin"/>
+ <property name="build.dir" value="${src.dir}"/>
+
+ <path id="master-classpath">
+ <fileset dir="lib">
+ <include name="**/*.jar"/>
+ </fileset>
+ <pathelement path="${build.dir}"/>
+ </path>
+
+ <target name="build"
+ description="Compile main source tree java files">
+ <mkdir dir="${build.dir}"/>
+ <javac destdir="${build.dir}" debug="true" target="1.5" source="1.5">
+ <src path="${src.dir}"/>
+ <classpath refid="master-classpath"/>
+ </javac>
+ </target>
+
+ <target name="jar" depends="build"
+ description="generate the jarfile" >
+ <mkdir dir="${dist.dir}"/>
+ <jar jarfile="${dist.dir}/${name}.jar" basedir="${build.dir}"
+ compress="true" index="true"
+ excludes="**/*.java"/>
+ </target>
+
+ <target name="clean"
+ description="clean up all generated files">
+ <delete file="${dist.dir}/${name}.jar">
+ <fileset dir="${build.dir}" includes="**/*.class"/>
+ </delete>
+ </target>
+</project>
Oops, something went wrong.

0 comments on commit f985328

Please sign in to comment.