You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by ju...@apache.org on 2007/05/05 10:12:27 UTC
svn commit: r535475 - /james/server/sandbox/james-jcr/build.xml
Author: jukka
Date: Sat May 5 01:12:26 2007
New Revision: 535475
URL: http://svn.apache.org/viewvc?view=rev&rev=535475
Log:
jcr-james: Simple ant build.xml based on mvn ant:ant
Added:
james/server/sandbox/james-jcr/build.xml
Added: james/server/sandbox/james-jcr/build.xml
URL: http://svn.apache.org/viewvc/james/server/sandbox/james-jcr/build.xml?view=auto&rev=535475
==============================================================================
--- james/server/sandbox/james-jcr/build.xml (added)
+++ james/server/sandbox/james-jcr/build.xml Sat May 5 01:12:26 2007
@@ -0,0 +1,118 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ 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="james-jcr" default="jar" basedir=".">
+
+ <property file="${user.home}/.m2/maven.properties"/>
+ <property name="maven.build.output" value="target/classes"/>
+ <property name="maven.build.directory" value="target"/>
+ <property name="maven.build.final.name" value="james-jcr-1.0-SNAPSHOT"/>
+ <property name="maven.test.reports" value="${maven.build.directory}/test-reports"/>
+ <property name="maven.test.output" value="target/test-classes"/>
+ <property name="maven.repo.local" value="${user.home}/.m2/repository"/>
+
+ <path id="build.classpath">
+ <fileset dir="${maven.repo.local}">
+ <include name="org/apache/james/james-server-mailet-api/2.3/james-server-mailet-api-2.3.jar"/>
+ <include name="org/apache/jackrabbit/jackrabbit-jcr-commons/1.3/jackrabbit-jcr-commons-1.3.jar"/>
+ <include name="javax/jcr/jcr/1.0/jcr-1.0.jar"/>
+ <include name="xml-apis/xml-apis/1.3.03/xml-apis-1.3.03.jar"/>
+ <include name="javax/activation/activation/1.1/activation-1.1.jar"/>
+ <include name="org/slf4j/slf4j-api/1.3.0/slf4j-api-1.3.0.jar"/>
+ <include name="xerces/xercesImpl/2.8.1/xercesImpl-2.8.1.jar"/>
+ <include name="org/apache/jackrabbit/jackrabbit-jcr-rmi/1.3/jackrabbit-jcr-rmi-1.3.jar"/>
+ <include name="javax/mail/mail/1.4/mail-1.4.jar"/>
+ </fileset>
+ </path>
+
+ <target name="clean" description="Clean the output directory">
+ <delete dir="${maven.build.directory}"/>
+ </target>
+
+ <target name="compile" depends="get-deps" description="Compile the code">
+ <mkdir dir="${maven.build.output}"/>
+ <javac destdir="${maven.build.output}" excludes="**/package.html"
+ debug="true" deprecation="true" optimize="false">
+ <src>
+ <pathelement location="src/main/java"/>
+ </src>
+ <classpath refid="build.classpath"/>
+ </javac>
+ </target>
+
+ <target name="jar" depends="compile,test" description="Clean the JAR">
+ <jar jarfile="${maven.build.directory}/${maven.build.final.name}.jar"
+ basedir="${maven.build.output}" excludes="**/package.html"/>
+ </target>
+
+ <target name="compile-tests" depends="junit-present, compile"
+ description="Compile the test code" if="junit.present">
+ <mkdir dir="${maven.test.output}"/>
+ </target>
+
+ <target name="test" depends="junit-present, compile-tests"
+ if="junit.present" description="Run the test cases"/>
+
+ <target name="test-junit-present">
+ <available classname="junit.framework.Test" property="junit.present"/>
+ </target>
+
+ <target name="junit-present" depends="test-junit-present" unless="junit.present">
+ <echo>================================= WARNING ================================</echo>
+ <echo> Junit isn't present in your $ANT_HOME/lib directory. Tests not executed. </echo>
+ <echo>==========================================================================</echo>
+ </target>
+
+ <target name="test-offline">
+ <condition property="maven.mode.offline">
+ <equals arg1="${build.sysclasspath}" arg2="only"/>
+ </condition>
+ </target>
+
+ <target name="get-deps" depends="test-offline"
+ description="Download all dependencies" unless="maven.mode.offline">
+ <mkdir dir="${maven.repo.local}"/>
+ <get src="http://repo1.maven.org/maven2/org/apache/james/james-server-mailet-api/2.3/james-server-mailet-api-2.3.jar"
+ dest="${maven.repo.local}/org/apache/james/james-server-mailet-api/2.3/james-server-mailet-api-2.3.jar"
+ usetimestamp="true" ignoreerrors="true"/>
+ <get src="http://repo1.maven.org/maven2/org/apache/jackrabbit/jackrabbit-jcr-commons/1.3/jackrabbit-jcr-commons-1.3.jar"
+ dest="${maven.repo.local}/org/apache/jackrabbit/jackrabbit-jcr-commons/1.3/jackrabbit-jcr-commons-1.3.jar"
+ usetimestamp="true" ignoreerrors="true"/>
+ <get src="http://www.day.com/maven/jsr170/jars/jcr-1.0.jar"
+ dest="${maven.repo.local}/javax/jcr/jcr/1.0/jcr-1.0.jar"
+ usetimestamp="true" ignoreerrors="true"/>
+ <get src="http://repo1.maven.org/maven2/xml-apis/xml-apis/1.3.03/xml-apis-1.3.03.jar"
+ dest="${maven.repo.local}/xml-apis/xml-apis/1.3.03/xml-apis-1.3.03.jar"
+ usetimestamp="true" ignoreerrors="true"/>
+ <get src="http://repo1.maven.org/maven2/javax/activation/activation/1.1/activation-1.1.jar"
+ dest="${maven.repo.local}/javax/activation/activation/1.1/activation-1.1.jar"
+ usetimestamp="true" ignoreerrors="true"/>
+ <get src="http://repo1.maven.org/maven2/org/slf4j/slf4j-api/1.3.0/slf4j-api-1.3.0.jar"
+ dest="${maven.repo.local}/org/slf4j/slf4j-api/1.3.0/slf4j-api-1.3.0.jar"
+ usetimestamp="true" ignoreerrors="true"/>
+ <get src="http://repo1.maven.org/maven2/xerces/xercesImpl/2.8.1/xercesImpl-2.8.1.jar"
+ dest="${maven.repo.local}/xerces/xercesImpl/2.8.1/xercesImpl-2.8.1.jar"
+ usetimestamp="true" ignoreerrors="true"/>
+ <get src="http://repo1.maven.org/maven2/org/apache/jackrabbit/jackrabbit-jcr-rmi/1.3/jackrabbit-jcr-rmi-1.3.jar"
+ dest="${maven.repo.local}/org/apache/jackrabbit/jackrabbit-jcr-rmi/1.3/jackrabbit-jcr-rmi-1.3.jar"
+ usetimestamp="true" ignoreerrors="true"/>
+ <get src="http://repo1.maven.org/maven2/javax/mail/mail/1.4/mail-1.4.jar"
+ dest="${maven.repo.local}/javax/mail/mail/1.4/mail-1.4.jar"
+ usetimestamp="true" ignoreerrors="true"/>
+ </target>
+
+</project>
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org