incubator-depot-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nickcha...@apache.org
Subject svn commit: rev 9902 - in incubator/depot/trunk/version/src: antlet test/antlet test/antlet/src test/antlet/src/java
Date Wed, 07 Apr 2004 05:16:57 GMT
Author: nickchalko
Date: Tue Apr  6 22:16:56 2004
New Revision: 9902

Added:
   incubator/depot/trunk/version/src/antlet/
   incubator/depot/trunk/version/src/antlet/xbuild.xml
   incubator/depot/trunk/version/src/test/antlet/   (props changed)
   incubator/depot/trunk/version/src/test/antlet/build.xml
   incubator/depot/trunk/version/src/test/antlet/src/
   incubator/depot/trunk/version/src/test/antlet/src/java/
Log:
Working on an antlet for this.

Added: incubator/depot/trunk/version/src/antlet/xbuild.xml
==============================================================================
--- (empty file)
+++ incubator/depot/trunk/version/src/antlet/xbuild.xml	Tue Apr  6 22:16:56 2004
@@ -0,0 +1,50 @@
+<?xml version="1.0"?>
+<!-- $HeadURL: https://svn.apache.org/repos/asf/incubator/depot/trunk/Version/build_antlet.xml
$ -->
+<!--
+Copyright 2004 The Apache Software Foundation
+
+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.
+-->
+<project default="version-stamp" name="depot-version.antlet">
+    <description> Version a Java project. </description>
+	<import file="usage.xml"/>
+	
+    <!-- Antlet Specific Properties -->
+    <dirname property="depot-version.antlet.dir" file="${ant.file.version.antlet}"/>
+    
+
+    <target name="version.init">
+        <mkdir dir="${depot-version.antlet.dir}/lib/"/>
+        <get
+            src="http://cvs.apache.org/~nickchalko/SNAPSHOTS/depot-version/jars/depot-version-dev-20040313.jar"
+            dest="${version.antlet.dir}/lib/depot-version.jar"
+            ignoreerrors="true"
+            verbose="true" usetimestamp="true"/>
+        <!-- Classpath for my jars -->
+        <path id="version.classpath">
+            <fileset dir="${depot-version.antlet.dir}/lib/">
+                <include name="*.jar"/>
+            </fileset>
+        </path>
+        <taskdef resource="version" classpathref="depot-version.classpath"/>
+    </target>
+    <target name="version-stamp" depends="version.init">
+        <description> Stamp a project with a version identifier/version
+            data/attributes. </description>
+        <version-stamp dest="${project.src.dir}" overWrite="true">
+            <versionMarker versionId="${project.package}" version="${project.version}">
+                <defaultAttributes/>
+            </versionMarker>
+        </version-stamp>
+    </target>
+</project>

Added: incubator/depot/trunk/version/src/test/antlet/build.xml
==============================================================================
--- (empty file)
+++ incubator/depot/trunk/version/src/test/antlet/build.xml	Tue Apr  6 22:16:56 2004
@@ -0,0 +1,45 @@
+<?xml version="1.0"?>
+<!-- $HeadURL: https://svn.apache.org/repos/asf/incubator/depot/trunk/Version/build_antlet.xml
$ -->
+<!--
+Copyright 2004 The Apache Software Foundation
+
+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.
+-->
+<project name="version-antlet-test" default="all">
+    <description> 
+		Depot Version antlet test
+	</description>
+    <tstamp/>
+	<typedef 
+    	resource="org/krysalis/antworks/importer/antlib.xml"  classpath="${user.home}/.antworks/lib/antworks-importer.jar"/>
+    <property name="project.name" value="version-antlet-test"/>
+    <property name="project.version" value="0.1-dev-${DSTAMP}"/>
+
+
+    <importer name="init-0.1" href="http://metamorphosis.krysalis.org/antlet/"/>
+    <importer name="java-0.1" href="http://metamorphosis.krysalis.org/antlet/"/>
+    <importer name="depot-version-0.1"/>
+
+    
+   
+    <path id="depot-version.classpath">
+        <fileset dir="lib">
+            <include name="*.jar"/>
+        </fileset>
+    </path>
+    
+    
+    <target name="all" depends="clean, version-stamp,compile"/>
+    
+    
+</project>

Mime
View raw message