Subversion Repositories DevTools

Rev

Rev 1974 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1974 Rev 1976
Line 1... Line 1...
1
<project>
1
<project>
2
 
2
 
3
    	<!--
3
    <!--
4
	    = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
4
	    = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
5
		macrodef: initivy
5
		macrodef: initivy
6
		~~~~~~~~~~~~~~~~~~~~~
6
		~~~~~~~~~~~~~~~~~~~~~
7
		This macrodef takes an ivy dependency template file, and creates 
7
		This macrodef takes an ivy dependency template file, and creates 
8
		a new ivy.xml file that has all the revisions updated with the version 
8
		a new ivy.xml file that has all the revisions updated with the version 
9
		numbers from the depends.xml file.         
9
		numbers from the depends.xml file.         
10
		= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
10
		= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
11
	  -->
11
	 -->
12
	<macrodef name="initivy">
12
	<macrodef name="initivy">
13
		<sequential>
13
		<sequential>
14
			<available property="ivy.xml.exists" filepath="${basedir}" file="${basedir}/ivy-template.xml" />
14
			<available property="ivy.xml.exists" filepath="${basedir}" file="${basedir}/ivy-template.xml" />
15
			<available property="depends.xml.exists" filepath="${basedir}" file="${basedir}/${ant.project.name}depends.xml" />
15
			<available property="depends.xml.exists" filepath="${basedir}" file="${basedir}/${ant.project.name}depends.xml" />
16
			<available property="auto.xml.exists" filepath="${basedir}" file="${basedir}/auto.xml" />
16
			<available property="auto.xml.exists" filepath="${basedir}" file="${basedir}/auto.xml" />
Line 31... Line 31...
31
					</if>
31
					</if>
32
					
32
					
33
					<loadproperties srcFile="${dependencies.xml}">
33
					<loadproperties srcFile="${dependencies.xml}">
34
						<filterchain>
34
						<filterchain>
35
							<tokenfilter>
35
							<tokenfilter>
36
								<replaceregex 
36
									<replaceregex 
37
									pattern='&lt;project.*&gt;'
37
										pattern='&lt;project.*&gt;'
38
				                    replace=''
38
					                    replace=''
39
				                    flags="gi" />
39
					                    flags="gi" />
40
				                <replaceregex 
40
					                <replaceregex 
41
				                    pattern='&lt;property name="packagename" value="(.*)" /&gt;'
41
					                    pattern='&lt;property\s+name="packagename"\s+value="(.*)"\s*/&gt;'
42
		                            replace=''
42
			                            replace=''
43
		                            flags="true" />
43
			                            flags="true" />
44
                           		<replaceregex 
44
	                           		<replaceregex 
45
		                           pattern='&lt;property name="(.*)" value="(.*)" /&gt;'
45
			                           pattern='&lt;property\s+name="(.*)"\s+value="(.*)"\s*/&gt;'
46
		                           replace='\1.rev=\2${line.separator}\1.branch=\2'
46
			                           replace='\1.rev=\2${line.separator}\1.branch=\2'
47
		                           flags="gi" />
47
			                           flags="gi" />
48
							</tokenfilter>
48
								</tokenfilter>
49
							<expandproperties/>
49
							<expandproperties/>
50
							<tokenfilter>
50
							<tokenfilter>
51
		                        <replaceregex 
51
		                        <replaceregex 
52
                           			pattern='(.*).rev=(.*?)\.?+[a-zA-Z]*$'
52
                           			pattern='(.*).rev=(.*?)\.?+[a-zA-Z]*$'
53
                           			replace='\1.rev=\2'
53
                           			replace='\1.rev=\2'