Subversion Repositories DevTools

Rev

Rev 1972 | Rev 1976 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1972 Rev 1974
Line 1... Line 1...
1
<project name="summarise-manifest-macrodef">
1
<project name="summarise-manifest-macrodef"
-
 
2
		 xmlns:ivy="antlib:fr.jayasoft.ivy.ant">
2
   <description>
3
   <description>
3
	The summarise-manifest macro updates the descpkg file with the build information.
4
	The summarise-manifest macro updates the descpkg file with the build information.
4
	If there are any .jar files in the pkg directory then the updated
5
	If there are any .jar files in the pkg directory then the updated
5
   </description>
6
   </description>
6
 
7
 
Line 20... Line 21...
20
 
21
 
21
		<element   name="jars"  optional="yes"  implicit="yes" />
22
		<element   name="jars"  optional="yes"  implicit="yes" />
22
 
23
 
23
		<sequential>
24
		<sequential>
24
 
25
 
25
			<!-- If version is UNOFFICIAL & jants.build.version is set, then use
26
			<available property="ivy.xml.exists" filepath="${basedir}" file="ivy.xml"/>
26
			     jants.build.version, otherwise use version.
-
 
27
			  -->
-
 
28
			<if>
27
			<if>
29
			    <and>
-
 
30
			        <equals arg1="@{version}" arg2="UNOFFICIAL"/>
28
				<isset property="ivy.xml.exists"/>
31
			        <not><equals arg1="${jants.build.version}" arg2="$${jants.build.version}"/></not>
-
 
32
			    </and>
-
 
33
				<then>
29
				<then>
-
 
30
					<ivy:resolve />
34
				    <var name="ant.project.version" value="${jants.build.version}"/>
31
					<ivy:artifactproperty 	name="using.[module].version" value="[revision](.[branch])"/>
35
				</then>
32
				</then>
36
				<else>
-
 
37
					<var name="ant.project.version" value="@{version}"/>
-
 
38
				</else>
-
 
39
			</if>
33
			</if>
40
 
34
 
41
			<tstamp>
35
			<tstamp>
42
				<format property="NOW" pattern="E MMM dd HH:mm:ss z yyyy"/>
36
				<format property="NOW" pattern="E MMM dd HH:mm:ss z yyyy"/>
43
			</tstamp>
37
			</tstamp>
44
 
38
 
-
 
39
			<mkdir dir="${basedir}/build/pkg"/>
-
 
40
			
45
			<manifest file="${basedir}/build/pkg/descpkg" mode="update">
41
			<manifest file="${basedir}/build/pkg/descpkg" mode="update">
46
				<section name="Build Properties">
42
				<section name="Build Properties">
47
					<attribute name="Package Name"    value="@{package}"/>
43
					<attribute name="Package Name"    value="@{package}"/>
48
					<attribute name="Package Version" value="${ant.project.version}"/>
44
					<attribute name="Package Version" value="${ant.project.version}"/>
49
					<attribute name="Built By"        value="@{builder}"/>
45
					<attribute name="Built By"        value="@{builder}"/>