summaryrefslogtreecommitdiffstats
path: root/tags/java-M1-final/java/distribution/tuscany-polish/fixupJars.xml
blob: 8142364b7834360319efb2aa238d1e0daab3e8f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<?xml version="1.0" encoding="UTF-8"?>
<!--
 *  Copyright (c) 2005-2006 The Apache Software Foundation or its licensors, as applicable.
 *
 *  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="project" default="fixupJars">

	<target name="fixupJars">
		<delete>
			<fileset dir="${target.dir}/lib/axis2" includes="*.jar">
				<present present="both" targetdir="${target.dir}/lib" />
			</fileset>
			<fileset dir="${target.dir}/lib/celtix" includes="*.jar">
				<present present="both" targetdir="${target.dir}/lib" />
			</fileset>
			<fileset dir="${target.dir}/lib/tools" includes="*.jar">
				<present present="both" targetdir="${target.dir}/lib" />
			</fileset>
		</delete>
		<copy todir="${target.dir}/javadoc">
			<fileset dir="${target.dir}/../../build/javadoc">
				<include name="sca-api/**/*" />
				<include name="sdo-api/**/*" />
				<include name="tuscany-common/**/*" />
				<include name="tuscany-core/**/*" />
				<include name="tuscany-model/**/*" />
				<include name="tuscany-das-rdb/**/*" />
				<include name="tuscany-databinding-sdo/**/*" />
			</fileset>
		</copy>
		<copy todir="${target.dir}/javadoc"> <!-- Style sheets are bing hdden here. -->
			<fileset dir="../../javadoc">
				<include name="**/*" />
			</fileset>
		</copy>
		<copy todir="${target.dir}/sampleapps">
			<fileset dir="../../sampleapps">
				<include name="**/*.htm*" />
			</fileset>
		</copy>
		<copy todir="${target.dir}">
			<fileset dir="../..">
				<include name="README.txt" />
				<include name="LICENSE.txt" />
				<include name="NOTICE" />
				<include name="GettingStarted.htm" />
			</fileset>
			<fileset dir="../../..">
				<include name="STATUS" />
				<include name="PROPOSAL.txt" />
			</fileset>
		</copy>		
		<zip destfile="${target.dir}/../tuscany-incubating-M1.zip">
			<zipfileset dir="${target.dir}" prefix="tuscany-incubating-M1">
			</zipfileset>
		</zip>
		<tar destfile="${target.dir}/../tuscany-incubating-M1.tar" longfile="gnu">
			<tarfileset dir="${target.dir}" prefix="tuscany-incubating-M1" mode="755">
				<include name="**/*.sh"/>
			</tarfileset>
			<tarfileset dir="${target.dir}" prefix="tuscany-incubating-M1">
				<exclude name="**/*.sh"/>
			</tarfileset>
		</tar>
		<gzip zipfile="${target.dir}/../tuscany-incubating-M1.tar.gz" src="${target.dir}/../tuscany-incubating-M1.tar" />
		
		<patternset id="exclusionList">
                  <exclude name="**/target"/>
                  <exclude name="**/target/**/*"/>
                  <exclude name="**/.svn"/>
                  <exclude name="**/.svn/**/*"/>
                  <exclude name="**/build"/>
                  <exclude name="**/build/**/*"/>
                  <exclude name="**/.settings/**/*"/>
                  <exclude name="**/.classpath"/>
                  <exclude name="**/.project"/>
                  <exclude name="**/.wtpmodules"/>
                  <exclude name="**/surefire*"/>
                  <exclude name="**/cobertura.ser"/>
                  <exclude name="**/bin/*"/>
                  <exclude name="**/var/journal"/>
                  <exclude name="**/build.out*"/>		
                  <exclude name="**/apache-tomcat-*.zip"/>		
                  <exclude name="**/apache-tomcat-*.tar.gz"/>		
		</patternset>
		
		<zip destfile="${target.dir}/../tuscany-incubating-M1-src.zip">
			<zipfileset dir="${target.dir}/../../.." prefix="tuscany-incubating-M1-src">
				<patternset refid="exclusionList"/>
			</zipfileset>
		</zip>
		<tar destfile="${target.dir}/../tuscany-incubating-M1-src.tar" longfile="gnu">
			<tarfileset dir="${target.dir}/../../.." prefix="tuscany-incubating-M1-src">
				<patternset refid="exclusionList"/>
			</tarfileset>
		</tar>
		<gzip zipfile="${target.dir}/../tuscany-incubating-M1-src.tar.gz" src="${target.dir}/../tuscany-incubating-M1-src.tar" />
		
	</target>

</project>