directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From szoer...@apache.org
Subject svn commit: r552128 - /directory/sandbox/szoerner/groovyldap/build.xml
Date Sat, 30 Jun 2007 11:48:34 GMT
Author: szoerner
Date: Sat Jun 30 04:48:32 2007
New Revision: 552128

URL: http://svn.apache.org/viewvc?view=rev&rev=552128
Log:
A simple ant file to build the jar

Added:
    directory/sandbox/szoerner/groovyldap/build.xml

Added: directory/sandbox/szoerner/groovyldap/build.xml
URL: http://svn.apache.org/viewvc/directory/sandbox/szoerner/groovyldap/build.xml?view=auto&rev=552128
==============================================================================
--- directory/sandbox/szoerner/groovyldap/build.xml (added)
+++ directory/sandbox/szoerner/groovyldap/build.xml Sat Jun 30 04:48:32 2007
@@ -0,0 +1,55 @@
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you 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.
+-->
+<project name="groovyldap" default="jarfile">
+	<property name="project.name" value="groovyldap" />
+	<property name="project.version" value="0.1" />
+
+	<property name="dir.src" value="./src/main" />
+
+	<property name="dir.target" value="./dist/" />
+	<property name="dir.classes" value="${dir.target}/classes" />
+	<property name="target.jar" value="${dir.target}/groovy-ldap.jar" />
+
+	<!-- file location of Groovy jar, to be adjusted --> 
+	<property name="groovy.jar" value="C:/java/groovy-1.0/groovy-1.0.jar" />
+
+	<target name="prepare">
+		<mkdir dir="${dir.target}" />
+		<mkdir dir="${dir.classes}" />
+	</target>
+
+	<target name="compile" depends="prepare">
+		<javac srcdir="${dir.src}" destdir="${dir.classes}" includes="**/*.java">
+			<classpath>
+				<pathelement location="${groovy.jar}" />
+			</classpath>
+		</javac>
+	</target>
+
+	<target name="jarfile" depends="compile">
+		<jar destfile="${target.jar}">
+			<fileset dir="${dir.classes}" />
+		</jar>
+	</target>
+
+	<target name="clean">
+		<delete dir="${dir.classes}" />
+	</target>
+
+</project>



Mime
View raw message