Revision 29436

View differences:

tags/tmp_build/build/projects/gvsig-plugin-animation/pom.xml
1
<project xmlns="http://maven.apache.org/POM/4.0.0"
2
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
4
                      http://maven.apache.org/xsd/maven-4.0.0.xsd">
5
	<modelVersion>4.0.0</modelVersion>
6
	<groupId>org.gvsig</groupId>
7
	<artifactId>gvsig-plugin-animation</artifactId>
8
	<packaging>pom</packaging>
9
	<version>1.0-SNAPSHOT</version>
10
	<name>gvsig-plugin-animation</name>
11
	<description>
12
		GvSIG plugin animation. This pom mades all the animation
13
		extension plugin for GvSIG
14
	</description>
15
	<distributionManagement>
16
		<repository>
17
			<id>gvsig-ftp-repository</id>
18
			<name>gvSIG maven FTP repository</name>
19
			<url>ftp://downloads.gvsig.org:20001/user/maven
20
			</url>
21
		</repository>
22
		<snapshotRepository>
23
			<id>gvsig-ftp-repository</id>
24
			<name>gvSIG maven FTP repository</name>
25
			<url>ftp://downloads.gvsig.org:20001/user/maven
26
			</url>
27
		</snapshotRepository>
28
	</distributionManagement>
29

  
30
	<modules>
31
		<module>../../../libAnimation</module>
32
		<module>../../../libAnimationCommon</module>
33
		<module>../../../libAnimation2D</module>
34
		<module>../../../libAnimation3D</module>
35
		<module>../../../extAnimation2D</module>
36
		<module>../../../extAnimation3D</module>
37
		<module>../../../extAnimationCommon</module>
38
		<module>../../../extAnimationGUI</module>
39
	</modules>
40
</project>
41

  
tags/tmp_build/build/projects/gvsig-plugin-animation/svntag.sh
1
PROJECTS="libraries/libAnimation
2
libraries/libAnimationCommon
3
libraries/libAnimation2D
4
libraries/libAnimation3D
5
extensions/extAnimation2D
6
extensions/extAnimation3D
7
extensions/extAnimationCommon
8
extensions/extAnimationGUI"
9

  
10

  
11
if [ $# -ne 2 ]
12
then
13
  echo "Usage: `basename $0` {tag name} {tag message}"
14
  exit 65
15
fi
16

  
17
#svn mkdir https://gvsig.org/svn/gvSIG/tags/$1 -m "$2"
18
#svn mkdir https://gvsig.org/svn/gvSIG/tags/$1/libraries -m "$2"
19
#svn mkdir https://gvsig.org/svn/gvSIG/tags/$1/extensions -m "$2"
20

  
21
#svn copy https://gvsig.org/svn/gvSIG/trunk/build https://gvsig.org/svn/gvSIG/tags/$1/ -m "$2"
22
#svn copy https://gvsig.org/svn/gvSIG/trunk/binaries https://gvsig.org/svn/gvSIG/tags/$1/ -m "$2"
23

  
24
for i in $PROJECTS; do
25
	project=$(echo $i | awk -F/ '{ print $2; }')
26
	svn copy https://gvsig.org/svn/gvSIG/trunk/$i https://gvsig.org/svn/gvSIG/tags/$1/$i -m "$2"
27
done
28

  
29

  
0 30

  
tags/tmp_build/build/projects/gvsig-plugin-animation/svnbranch.sh
1
PROJECTS="libraries/libAnimation
2
libraries/libAnimationCommon
3
libraries/libAnimation2D
4
libraries/libAnimation3D
5
extensions/extAnimation2D
6
extensions/extAnimation3D
7
extensions/extAnimationCommon
8
extensions/extAnimationGUI"
9

  
10

  
11
if [ $# -ne 2 ]
12
then
13
  echo "Usage: `basename $0` {branch name} {branch message}"
14
  exit 65
15
fi
16

  
17
#svn mkdir https://gvsig.org/svn/gvSIG/branches/$1 -m "$2"
18
#svn mkdir https://gvsig.org/svn/gvSIG/branches/$1/libraries -m "$2"
19
#svn mkdir https://gvsig.org/svn/gvSIG/branches/$1/extensions -m "$2"
20

  
21
#svn copy https://gvsig.org/svn/gvSIG/trunk/build https://gvsig.org/svn/gvSIG/branches/$1/ -m "$2"
22
#svn copy https://gvsig.org/svn/gvSIG/trunk/binaries https://gvsig.org/svn/gvSIG/branches/$1/ -m "$2"
23

  
24
for i in $PROJECTS; do
25
	project=$(echo $i | awk -F/ '{ print $2; }')
26
	svn copy https://gvsig.org/svn/gvSIG/trunk/$i https://gvsig.org/svn/gvSIG/branches/$1/$i -m "$2"
27
done
28

  
29

  
0 30

  
tags/tmp_build/build/projects/gvsig-plugin-animation/build.xml
1
<project name="gvSIG 3D Plugin Build System" default="work" basedir=".">
2

  
3
	<import file="../../build.xml" />
4

  
5
	<target name="work" description="prepares system to begin working with eclipse" depends="prepare-eclipse-workspace" />
6
	<!--
7
	TODO: This target should call mvn install phase in a temporary dir, and afterwards call izPack to do the distribution of this plugin.
8
	target name="distribution" description="creates the final distribution of the plugin" depends="mvn-install,build-installer" /
9
	-->
10

  
11
</project>
12

  
tags/tmp_build/build/projects/gvsig-plugin-animation/svnco.sh
1
#!/bin/bash
2

  
3
PROJECTS=$(grep "\<module\>" pom.xml | awk -F"\<module\>" '{print $2}' | awk -F"\<\/module\>" '{print $1}')
4
URL=https://gvsig.org/svn/gvSIG/trunk
5

  
6
for i in $PROJECTS; do
7
	project=$(echo $i | sed 's/.*\/ext/extensions\/ext/g' |  sed 's/.*\/lib/libraries\/lib/g' | sed 's/.*\/_fw/frameworks\/_fw/g' | sed 's/.*\/app/applications\/app/g';)
8
	echo $project
9
	svn co $URL/$project $i
10
done
11

  
12

  
0 13

  
tags/tmp_build/build/projects/gvsig-plugin-raster/pom.xml
1
<project xmlns="http://maven.apache.org/POM/4.0.0"
2
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
4
                      http://maven.apache.org/xsd/maven-4.0.0.xsd">
5
	<modelVersion>4.0.0</modelVersion>
6
	<groupId>org.gvsig</groupId>
7
	<artifactId>gvsig-plugin-raster</artifactId>
8
	<packaging>pom</packaging>
9
	<version>1.0-SNAPSHOT</version>
10
	<name>gvsig-plugin-raster</name>
11
	<description>
12
		GvSIG plugin. This pom mades all the base plugin needed to run GvSIG
13
	</description>
14
	<inceptionYear>2007</inceptionYear>
15

  
16
	<developers>
17
		<developer>
18
			<name>nombre</name>
19
			<id>id</id>
20
			<email>mail@mail.com</email>
21
			<roles>
22
				<role>Developer</role>
23
			</roles>
24
			<organization>CIT</organization>
25
		</developer>
26
	</developers>
27

  
28
	<dependencies>
29
		<dependency>
30
			<groupId>junit</groupId>
31
			<artifactId>junit</artifactId>
32
			<version>3.8.1</version>
33
			<scope>test</scope>
34
		</dependency>
35

  
36
		<dependency>
37
			<groupId>log4j</groupId>
38
			<artifactId>log4j</artifactId>
39
			<version>1.2.13</version>
40
		</dependency>
41
	</dependencies>
42

  
43

  
44

  
45
	<modules>
46
		<module>../../../libUIComponent</module>
47
		<module>../../../libRaster</module>
48
		<module>../../../extRasterTools-SE</module>
49
		<module>../../../extRemoteSensing</module>		
50
	</modules>
51
</project>
52

  
tags/tmp_build/build/projects/gvsig-plugin-raster/build.xml
1
<project name="gvSIG 3D Plugin Build System" default="work" basedir=".">
2

  
3
	<import file="../../build.xml" />
4

  
5
	<target name="work" description="prepares system to begin working with eclipse" depends="prepare-eclipse-workspace" />
6
	<!--
7
	TODO: This target should call mvn install phase in a temporary dir, and afterwards call izPack to do the distribution of this plugin.
8
	target name="distribution" description="creates the final distribution of the plugin" depends="mvn-install,build-installer" /
9
	-->
10

  
11
</project>
12

  
tags/tmp_build/build/projects/gvsig-example-projects/pom.xml
1
<project xmlns="http://maven.apache.org/POM/4.0.0"
2
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
4
                      http://maven.apache.org/xsd/maven-4.0.0.xsd">
5
	<modelVersion>4.0.0</modelVersion>
6
	<groupId>org.gvsig</groupId>
7
	<artifactId>gvsig-plugin-NAME</artifactId>
8
	<packaging>pom</packaging>
9
	<version>1.0-SNAPSHOT</version>
10
	<name>gvsig-plugin-NAME</name>
11
	<description>
12
		GvSIG plugin NAME. This pom builds all the NAME extension plugin for
13
		GvSIG
14
	</description>
15
	<inceptionYear>2008</inceptionYear>
16
	
17
	<developers>
18
		<developer>
19
			<name>Developer 1</name>
20
			<id>id-developer1</id>
21
			<email>id-developer1@dot.com</email>
22
			<roles>
23
				<role>Project Lead</role>
24
			</roles>
25
			<organization>ORGANIZATION</organization>
26
		</developer>
27
		<developer>
28
			<name>Developer2</name>
29
			<id>id-developer2</id>
30
			<email>id-developer2@dot.com</email>
31
			<roles>
32
				<role>Developer</role>
33
			</roles>
34
			<organization>ORGANIZATION</organization>
35
		</developer>
36
	</developers>
37

  
38
	<modules>
39
		<module>PATH TO THE INVOLVED PROJECTS ../../libMylibrary</module>
40
		<module>PATH TO THE INVOLVED PROJECTS ../../libMyExtension</module>
41
	</modules>
42
</project>
43

  
tags/tmp_build/build/projects/gvsig-example-projects/build.xml
1
<project name="gvSIG 3D Plugin Build System" default="work" basedir=".">
2

  
3
	<import file="../../build.xml" />
4

  
5
	<target name="work" description="prepares system to begin working with eclipse" depends="prepare-eclipse-workspace" />
6
	<!--
7
	TODO: This target should call mvn install phase in a temporary dir, and afterwards call izPack to do the distribution of this plugin.
8
	target name="distribution" description="creates the final distribution of the plugin" depends="mvn-install,build-installer" /
9
	-->
10

  
11
</project>
12

  
tags/tmp_build/build/projects/gvsig-plugin-3D/pom.xml
1
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
3
                      http://maven.apache.org/xsd/maven-4.0.0.xsd">
4
	<modelVersion>4.0.0</modelVersion>
5
	<groupId>org.gvsig</groupId>
6
	<artifactId>gvsig-plugin-3D</artifactId>
7
	<packaging>pom</packaging>
8
	<version>1.0-SNAPSHOT</version>
9
	<name>gvsig-plugin-3d</name>
10
	<description> GvSIG plugin 3D. This pom mades all the 3D extension
11
		plugin for GvSIG</description>
12
	<inceptionYear>2007</inceptionYear>
13
	<developers>
14
		<developer>
15
			<name>Rafael Gaitán</name>
16
			<id>rgaitan</id>
17
			<email>rgaitan@ai2.upv.es</email>
18
			<roles>
19
				<role>Project Lead</role>
20
			</roles>
21
			<organization>AI2</organization>
22
		</developer>
23
		<developer>
24
			<name>Maria Ten</name>
25
			<id>mten</id>
26
			<email>mten@ai2.upv.es</email>
27
			<roles>
28
				<role>Developer</role>
29
			</roles>
30
			<organization>AI2</organization>
31
		</developer>
32
		<developer>
33
			<name>Jordi Torres</name>
34
			<id>jtorres</id>
35
			<email>jtorres@ai2.upv.es</email>
36
			<roles>
37
				<role>Developer</role>
38
			</roles>
39
			<organization>AI2</organization>
40
		</developer>
41
		<developer>
42
			<name>Jesus Zarzoso</name>
43
			<id>jzarzoso</id>
44
			<email>jzarzoso@ai2.upv.es</email>
45
			<roles>
46
				<role>Developer</role>
47
			</roles>
48
			<organization>AI2</organization>
49
		</developer>
50
		<developer>
51
			<name>Javier Lluch</name>
52
			<id>jlluch</id>
53
			<email>jlluch@dsic.upv.es</email>
54
			<roles>
55
				<role>Manager</role>
56
			</roles>
57
			<organization>AI2</organization>
58
		</developer>
59
		<developer>
60
			<name>Salvador Bayarri</name>
61
			<id>sbayarri</id>
62
			<email>salvador.bayarri@iver.es</email>
63
			<roles>
64
				<role>Manager</role>
65
			</roles>
66
			<organization>IVER</organization>
67
		</developer>
68
		<developer>
69
			<name>Julio Campos</name>
70
			<id>jcampos</id>
71
			<email>julio.campos@iver.es</email>
72
			<roles>
73
				<role>Project Lead</role>
74
			</roles>
75
			<organization>IVER</organization>
76
		</developer>
77
		<developer>
78
			<name>Angel Fraile</name>
79
			<id>afraile</id>
80
			<email>angel.fraile@iver.es</email>
81
			<roles>
82
				<role>Developer</role>
83
			</roles>
84
			<organization>IVER</organization>
85
		</developer>
86
	</developers>
87
	<dependencies>
88
		<dependency>
89
			<groupId>junit</groupId>
90
			<artifactId>junit</artifactId>
91
			<version>3.8.1</version>
92
			<scope>test</scope>
93
		</dependency>
94
		<dependency>
95
			<groupId>log4j</groupId>
96
			<artifactId>log4j</artifactId>
97
			<version>1.2.13</version>
98
		</dependency>
99
	</dependencies>
100
	
101
	<distributionManagement>
102
		<repository>
103
			<id>gvsig-ftp-repository</id>
104
			<name>gvSIG maven FTP repository</name>
105
			<url>ftp://downloads.gvsig.org:20001/user/maven
106
			</url>
107
		</repository>
108
		<snapshotRepository>
109
			<id>gvsig-ftp-repository</id>
110
			<name>gvSIG maven FTP repository</name>
111
			<url>ftp://downloads.gvsig.org:20001/user/maven
112
			</url>
113
		</snapshotRepository>
114
	</distributionManagement>
115
	<modules>
116
		<module>../../../libCacheService</module>
117
		<module>../../../extDockingSkin</module>
118
		<module>../../../lib3DMap-share</module>
119
		<module>../../../libGeometries3D</module>
120
		<module>../../../libGPE-OSG</module>
121
		<module>../../../lib3DMap</module>
122
		<module>../../../ext3Dgui</module>
123
	</modules>
124
	<build>
125
		<plugins>
126
			<plugin>
127
				<artifactId>maven-assembly-plugin</artifactId>
128
				<configuration>
129
					<descriptors>
130
						<descriptor>source-distribution.xml
131
						</descriptor>
132
					</descriptors>
133
				</configuration>
134
			</plugin>
135
		</plugins>
136
	</build>
137
</project>
tags/tmp_build/build/projects/gvsig-plugin-3D/svntag.sh
1
PROJECTS=$(grep "\<module\>" pom.xml | awk -F"\<module\>" '{print $2}' | awk -F"\<\/module\>" '{print $1}')
2
URL=https://gvsig.org/svn/gvSIG/trunk
3
URL_TAGS=https://gvsig.org/svn/gvSIG/tags
4

  
5
if [ $# -ne 2 ]
6
then
7
  echo "Usage: `basename $0` {tag name} {tag message}"
8
  echo "Example: `basename $0` gvSIG_3D_Animation_1_0_SNAPSHOT_build_9 \"Tag for gvsig 3D and animation extensions version 1.0 SNAPSHOT build 9\""
9
  exit 65
10
fi
11

  
12
svn mkdir $URL_TAGS/$1 -m "$2"
13
svn mkdir $URL_TAGS/$1/libraries -m "$2"
14
svn mkdir $URL_TAGS/$1/extensions -m "$2"
15

  
16
svn copy $URL/build $URL_TAGS/$1/ -m "$2"
17
svn copy $URL/binaries $URL_TAGS/$1/ -m "$2"
18

  
19
for i in $PROJECTS; do
20
	project=$(echo $i | sed 's/.*\/ext/extensions\/ext/g' |  sed 's/.*\/lib/libraries\/lib/g' | sed 's/.*\/_fw/frameworks\/_fw/g' | sed 's/.*\/app/applications\/app/g';)
21
	echo $project
22
	svn copy $URL/$project $URL_TAGS/$1/$project -m "$2"
23
done
24

  
25

  
0 26

  
tags/tmp_build/build/projects/gvsig-plugin-3D/svnbranch.sh
1
PROJECTS="libraries/libCacheService
2
libraries/lib3DMap-share
3
libraries/libGeometries3D
4
libraries/libGPE-OSG
5
libraries/lib3DMap
6
extensions/ext3Dgui"
7

  
8
if [ $# -ne 2 ]
9
then
10
  echo "Usage: `basename $0` {branch name} {branch message}"
11
  exit 65
12
fi
13

  
14
svn mkdir https://gvsig.org/svn/gvSIG/branches/$1 -m "$2"
15
svn mkdir https://gvsig.org/svn/gvSIG/branches/$1/libraries -m "$2"
16
svn mkdir https://gvsig.org/svn/gvSIG/branches/$1/extensions -m "$2"
17

  
18
svn copy https://gvsig.org/svn/gvSIG/trunk/build https://gvsig.org/svn/gvSIG/branches/$1/ -m "$2"
19
svn copy https://gvsig.org/svn/gvSIG/trunk/binaries https://gvsig.org/svn/gvSIG/branches/$1/ -m "$2"
20

  
21
for i in $PROJECTS; do
22
	project=$(echo $i | awk -F/ '{ print $2; }')
23
	svn copy https://gvsig.org/svn/gvSIG/trunk/$i https://gvsig.org/svn/gvSIG/branches/$1/$i -m "$2"
24
done
25

  
26

  
0 27

  
tags/tmp_build/build/projects/gvsig-plugin-3D/build.xml
1
<project name="gvSIG 3D Plugin Build System" default="work" basedir=".">
2

  
3
	<import file="../../build.xml" />
4

  
5
	<target name="work" description="prepares system to begin working with eclipse" depends="prepare-eclipse-workspace" />
6
	<!--
7
	TODO: This target should call mvn install phase in a temporary dir, and afterwards call izPack to do the distribution of this plugin.
8
	target name="distribution" description="creates the final distribution of the plugin" depends="mvn-install,build-installer" /
9
	-->
10

  
11
</project>
12

  
tags/tmp_build/build/projects/gvsig-plugin-3D/svnco.sh
1
#!/bin/bash
2

  
3
PROJECTS=$(grep "\<module\>" pom.xml | awk -F"\<module\>" '{print $2}' | awk -F"\<\/module\>" '{print $1}')
4
URL=https://gvsig.org/svn/gvSIG/trunk
5

  
6
for i in $PROJECTS; do
7
	project=$(echo $i | sed 's/.*\/ext/extensions\/ext/g' |  sed 's/.*\/lib/libraries\/lib/g' | sed 's/.*\/_fw/frameworks\/_fw/g' | sed 's/.*\/app/applications\/app/g';)
8
	echo $project
9
	svn co $URL/$project $i
10
done
11

  
12

  
0 13

  
tags/tmp_build/build/projects/gvsig-plugin-base/pom.xml
1
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
3
                      http://maven.apache.org/xsd/maven-4.0.0.xsd">
4
	<modelVersion>4.0.0</modelVersion>
5
	<groupId>org.gvsig</groupId>
6
	<artifactId>gvsig-plugin</artifactId>
7
	<packaging>pom</packaging>
8
	<version>1.9-SNAPSHOT</version>
9
	<name>gvsig-plugin</name>
10
	<description> GvSIG plugin. This pom mades all the base plugin needed
11
		to run GvSIG</description>
12
	<inceptionYear>2007</inceptionYear>
13
	<developers>
14
		<developer>
15
			<name>nombre</name>
16
			<id>id</id>
17
			<email>mail@mail.com</email>
18
			<roles>
19
				<role>Developer</role>
20
			</roles>
21
			<organization>CIT</organization>
22
		</developer>
23
	</developers>
24
	<dependencies>
25
		<dependency>
26
			<groupId>junit</groupId>
27
			<artifactId>junit</artifactId>
28
			<version>3.8.1</version>
29
			<scope>test</scope>
30
		</dependency>
31
		<dependency>
32
			<groupId>log4j</groupId>
33
			<artifactId>log4j</artifactId>
34
			<version>1.2.13</version>
35
		</dependency>
36
	</dependencies>
37
	
38
	<distributionManagement>
39
		<repository>
40
			<id>gvsig-ftp-repository</id>
41
			<name>gvSIG maven FTP repository</name>
42
			<url>ftp://downloads.gvsig.org:20001/user/maven
43
			</url>
44
		</repository>
45
		<snapshotRepository>
46
			<id>gvsig-ftp-repository</id>
47
			<name>gvSIG maven FTP repository</name>
48
			<url>ftp://downloads.gvsig.org:20001/user/maven
49
			</url>
50
		</snapshotRepository>
51
	</distributionManagement>
52

  
53
	<modules>
54
		<module>../../../libInternationalization</module>
55
		<module>../../../libExceptions</module>
56
		<module>../../../libIverUtiles</module>
57
		<module>../../../libUIComponent</module>
58
		<module>../../../_fwAndami</module>
59
		<module>../../../libCorePlugin</module>
60
		<module>../../../libProjection</module>
61
		<module>../../../libRaster</module>
62
		<module>../../../libDriverManager</module>
63
		<module>../../../libRemoteServices</module>
64
		<module>../../../libDXF</module>
65
		<module>../../../libGPE</module>
66
		<module>../../../libGPE-XML</module>
67
		<module>../../../libGPE-GML</module>
68
		<module>../../../libGPE-KML</module>
69
<!--		<module>../../../libDwg</module>-->
70
		<module>../../../libJCRS</module>
71
		<module>../../../extJCRS</module>
72
		<module>../../../libGeoUtils</module>
73
		<module>../../../libFMap</module>
74
		<module>../../../openjdk-printing1.7</module>
75
		<module>../../../appgvSIG</module>
76
		<module>../../../extRasterTools-SE</module>
77
<!--		<module>../../../extDwg</module>-->
78
<!--		<module>../../../extRemoteSensing</module>-->
79
		<module>../../../extIconThemeBase</module>
80
		<module>../../../extWMS</module>
81
		<module>../../../extWCS</module>
82
		<module>../../../extWFS2</module>
83
		<module>../../../extJDBC</module>
84
		<module>../../../extScripting</module>
85
		<module>../../../extCAD</module>
86
		<module>../../../extGPE-gvSIG</module>
87
	</modules>
88
</project>
tags/tmp_build/build/projects/gvsig-plugin-base/build.xml
1
<project name="gvSIG 3D Plugin Build System" default="work" basedir=".">
2

  
3
	<import file="../../build.xml" />
4
	<property name="dst-distri" location="../../../_fwAndami"/>
5
	
6
	<!--
7
	TODO: This target should call mvn install phase in a temporary dir, and afterwards call izPack to do the distribution of this plugin.
8
	target name="distribution" description="creates the final distribution of the plugin" depends="mvn-install,build-installer" /
9
	-->
10

  
11
	<target name="work" description="prepares system to begin working with eclipse" depends="install-gvsig-base" />
12
	<target name="eclipse" depends="mvn-clean,mvn-eclipse-clean,mvn-eclipse-eclipse" />
13

  
14
	<target name="install-gvsig-base" depends="mvn-clean,mvn-install-extensions"/>
15

  
16

  
17
	<target name="mvn-install-extensions">
18
		<maven>
19
			<arg value="install" />
20
			<arg value="-Dmaven.test.skip=true" />
21
			<arg value="-Dinstall-extension" />
22
		</maven>
23
		<mkdir dir="${dst-distri}/gvSIG"/>
24
		<copy todir="${dst-distri}/gvSIG">
25
			<fileset dir="../../product/gvSIG/" includes="**"/>
26
		</copy>
27
		<copy todir="${dst-distri}">
28
			<fileset dir="../../product/" includes="*.jar"/>
29
		</copy>
30
	</target>
31

  
32
	<target name="mvn-install">
33
		<maven>
34
			<arg value="install" />
35
		</maven>
36
	</target>
37

  
38
	<target name="mvn-eclipse-clean">
39
		<maven>
40
			<arg value="eclipse:clean" />
41
		</maven>
42
	</target>
43

  
44

  
45
	<target name="mvn-eclipse-eclipse">
46
		<maven>
47
			<arg value="eclipse:eclipse" />
48
		</maven>
49
	</target>
50

  
51
</project>
52

  
tags/tmp_build/build/projects/gvsig-plugin-base/svnco.sh
1
#!/bin/bash
2

  
3
PROJECTS=$(grep "\<module\>" pom.xml | awk -F"\<module\>" '{print $2}' | awk -F"\<\/module\>" '{print $1}')
4
URL=https://gvsig.org/svn/gvSIG/trunk
5

  
6
for i in $PROJECTS; do
7
	project=$(echo $i | sed 's/.*\/ext/extensions\/ext/g' |  sed 's/.*\/lib/libraries\/lib/g' | sed 's/.*\/_fw/frameworks\/_fw/g' | sed 's/.*\/app/applications\/app/g';)
8
	echo $project
9
	svn co $URL/$project $i
10
done
11

  
12

  
0 13

  
tags/tmp_build/build/projects/gvsig-plugin-base/svnjnico.sh
1
PROJECTS="libraries/libjni-gdal
2
libraries/libjni-ecw
3
libraries/libjni-mrsid
4
libraries/libjni-potrace
5
libraries/libjni-proj4
6
"
7

  
8
for i in $PROJECTS; do
9
	project=$(echo $i | awk -F/ '{ print $2; }')
10
	svn co https://gvsig.org/svn/gvSIG/trunk/$i ../../../$project
11
done
12

  
13

  
0 14

  
tags/tmp_build/build/pom.xml
1
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
3
http://maven.apache.org/maven-v4_0_0.xsd">
4
	<modelVersion>4.0.0</modelVersion>
5
	<groupId>org.gvsig</groupId>
6
	<artifactId>gvsig-basepoms</artifactId>
7
	<packaging>pom</packaging>
8
	<version>1.9-SNAPSHOT</version>
9
	<name>gvsig-base-pom</name>
10
	<description>Base POM for all GvSIG projects</description>
11
	<scm>
12
		<connection> scm:svn:https://gvsig.org/svn/gvSIG/trunk</connection>
13
		<developerConnection> scm:svn:https://gvsig.org/svn/gvSIG/trunk
14
		</developerConnection>
15
		<url>https://gvsig.org/web</url>
16
	</scm>
17
	<organization>
18
		<name>CIT/IVER/AI2</name>
19
		<url>http://gvsig.org/web</url>
20
	</organization>
21
	<!--
22
		Put here the global properties who use all the projects of GvSIG
23
	-->
24
	<properties>
25
		<gvsig-path><!-- Name property -->
26
			../build/product
27
		</gvsig-path>
28
		<gvsig-lib-dir>${gvsig-path}/lib</gvsig-lib-dir>
29
		<extension-dir>${gvsig-path}/gvSIG/extensiones
30
		</extension-dir>
31
		<build-dir>${basedir}</build-dir>
32
	</properties>
33
	<repositories>
34
		<!--
35
			repository> <id>gvSIG-Repo</id>
36
			<url>https://gvsig.org/plugins/downloads/gvsig-repo</url>
37
			</repository
38
		-->
39
		<!--
40
			repository> <id>gvsig-ftp-repository</id> <name>gvSIG maven FTP
41
			repository</name> <url>ftp://downloads.gvsig.org:20001/user/maven
42
			</url> </repository
43
		-->
44
		<repository>
45
			<id>refractions</id>
46
			<name>gvSIG maven http repository</name>
47
			<url>http://downloads.gvsig.org/pub/gvSIG-desktop/maven-repository/
48
			</url>
49
		</repository>
50
		<repository>
51
			<id>refractions</id>
52
			<name>Refractions Research Maven 2 Repository</name>
53
			<url>http://mirrors.ibiblio.org/pub/mirrors/maven2
54
			</url>
55
		</repository>
56
		<repository>
57
			<id>refractions</id>
58
			<name>Refractions Research Maven 2 Repository</name>
59
			<url>http://lists.refractions.net/m2
60
			</url>
61
		</repository>
62
		<repository>
63
			<id>geotools</id>
64
			<url>http://maven.geotools.fr/repository
65
			</url>
66
		</repository>
67
<!--		<repository>-->
68
<!--			<id>OSGVP</id>-->
69
<!--			<url>http://josgplanets.ai2.upv.es/maven/repository-->
70
<!--			</url>-->
71
<!--		</repository>-->
72
	</repositories>
73
	<reporting>
74
		<plugins>
75
			<plugin>
76
				<groupId>org.apache.maven.plugins</groupId>
77
				<artifactId>maven-javadoc-plugin</artifactId>
78
			</plugin>
79
		</plugins>
80
	</reporting>
81
	<distributionManagement>
82
		<repository>
83
			<id>gvsig-ftp-repository</id>
84
			<name>gvSIG maven FTP repository</name>
85
			<url>ftp://downloads.gvsig.org:20001/user/maven
86
			</url>
87
		</repository>
88
		<snapshotRepository>
89
			<id>gvsig-ftp-repository</id>
90
			<name>gvSIG maven FTP repository</name>
91
			<url>ftp://downloads.gvsig.org:20001/user/maven
92
			</url>
93
		</snapshotRepository>
94
	</distributionManagement>
95
	<build>
96
		<extensions>
97
			<extension>
98
				<groupId>org.apache.maven.wagon</groupId>
99
				<artifactId>wagon-webdav</artifactId>
100
				<version>1.0-beta-2</version>
101
			</extension>
102
			<extension>
103
				<groupId>org.gvsig.maven.wagon</groupId>
104
				<artifactId>wagon-ftp</artifactId>
105
				<version>0.2</version>
106
			</extension>
107
		</extensions>
108
		<plugins>
109
			<plugin>
110
				<groupId>org.apache.maven.plugins</groupId>
111
				<artifactId>maven-compiler-plugin</artifactId>
112
				<configuration>
113
					<source>1.5</source>
114
					<target>1.5</target>
115
          <!-- put your configurations here -->
116
					<encoding>ISO-8859-1</encoding>
117
<!--					<failOnError>false</failOnError>-->
118
				</configuration>
119
			</plugin>
120
		</plugins>
121
	</build>
122
	<profiles>
123
		<profile>
124
			<id>release</id>
125
			<activation>
126
				<property>
127
					<name>withSources</name>
128
				</property>
129
			</activation>
130
			<build>
131
				<plugins>
132
					<plugin>
133
						<groupId>org.apache.maven.plugins
134
						</groupId>
135
						<artifactId>maven-source-plugin</artifactId>
136
						<executions>
137
							<execution>
138
								<id>attach-sources</id>
139
								<goals>
140
									<goal>jar</goal>
141
								</goals>
142
							</execution>
143
						</executions>
144
					</plugin>
145
				</plugins>
146
			</build>
147
		</profile>
148
	</profiles>
149
	<modules>
150
		<module>libraries-pom</module>
151
		<module>extension-pom</module>
152
	</modules>
153
</project>
tags/tmp_build/build/build.xml
1
<project name="Complete_build_system" basedir="." default="prepare-eclipse-workspace">
2
	<description>
3
		Builds and prepare folders to work with eclipse using maven.
4
		Also is able to generate a release of all system with binaries distribution
5
		and sources distribution.
6
	</description>
7
	<!-- set global properties for this build -->
8
	<dirname file="${ant.file.Complete_build_system}" property="ant.file.Complete_build_system.dir"/>
9
	<property name="mavendir" location="${ant.file.Complete_build_system.dir}/maven" />
10
	<property environment="environment"/>
11

  
12
	<condition property="mvn.executable" value="${mavendir}/bin/mvn.bat" else="${mavendir}/bin/mvn">
13
		<os family="windows" />
14
	</condition>
15

  
16
	<condition property="isLinux">
17
		<and>
18
			<os family="unix" />
19
			<not>
20
				<os family="mac" />
21
			</not>
22
		</and>
23
	</condition>
24
	<condition property="isWindows">
25
		<or>
26
			<os family="windows" />
27
			<os family="win9x" />
28
			<os name="Windows Vista" />
29
		</or>
30
	</condition>
31
	<condition property="isMac">
32
		<os family="mac" />
33
	</condition>
34

  
35
	<condition property="gvsig.os" value="w32">
36
		<os family="windows" />
37
	</condition>
38
	<condition property="gvsig.os" value="linux">
39
		<and>
40
			<os family="unix" />
41
			<not>
42
				<os family="mac" />
43
			</not>
44
		</and>
45
	</condition>
46
	<condition property="gvsig.os" value="mac">
47
		<os family="mac" />
48
	</condition>
49

  
50
	<property name="native-binaries-dir" value="../binaries" />
51

  
52
	<presetdef name="maven">
53
		<exec executable="${mvn.executable}">
54
			<env key="JAVA_HOME" value="${java.home}"/>
55
		</exec>
56
	</presetdef>
57

  
58
	<target name="prepare-eclipse-workspace" depends="mvn-clean,mvn-install-without-tests">
59
		<maven>
60
			<arg value="-Declipse.workspace=../" />
61
			<arg value="eclipse:add-maven-repo" />
62
		</maven>
63
		<maven>
64
			<arg value="eclipse:eclipse" />
65
		</maven>
66

  
67
	</target>
68
	<target name="mvn-clean">
69
		<maven>
70
			<arg value="clean" />
71
		</maven>
72
	</target>
73
	<target name="mvn-install-without-tests">
74
		<maven>
75
			<arg value="install" />
76
			<arg value="-Dmaven.test.skip=true" />
77
		</maven>
78
	</target>
79

  
80
	<target name="install-gvsig-base" depends="mvn-clean,mvn-install-extensions,mvn-eclipse-clean">
81
		<maven>
82
			<arg value="eclipse:eclipse" />
83
		</maven>
84
	</target>
85

  
86
	<target name="mvn-install-extensions">
87
		<maven>
88
			<arg value="install" />
89
			<arg value="-Dmaven.test.skip=true" />
90
			<arg value="-Dinstall-extension" />
91
		</maven>
92
	</target>
93

  
94
	<target name="mvn-install">
95
		<maven>
96
			<arg value="install" />
97
		</maven>
98
	</target>
99

  
100
	<target name="mvn-eclipse-clean">
101
		<maven>
102
			<arg value="eclipse:clean" />
103
		</maven>
104
	</target>
105

  
106
	<target name="mvn-eclipse-eclipse">
107
		<maven>
108
			<arg value="eclipse:eclipse" />
109
		</maven>
110
	</target>
111

  
112
	<!-- TODO: Target for make complete building of gvSIG, calling all enabled projects by default -->
113

  
114
	<!-- target name="work" description="prepares system to begin working with eclipse" depends="prepare-eclipse-workspace" / -->
115

  
116
</project>
117

  
tags/tmp_build/build/distribution/example-distribution/win-distribution/build.xml
1
<project name="instalador-gvSIG" default="init" basedir=".">
2
	<!--
3
	<property name="dir_inst" location="C:\Archivos de programa"/>
4
	<property name="base_dir" location="./"/>		
5
	<property name="dir_libs" location="C:\Archivos de programa\IzPack\lib"/>
6
	<property name="vers" location="0.6"/>
7
	<property name="izpack_dir" location="C:\Archivos de programa\IzPack"/>
8
	-->
9
	
10
	<property name="dir_inst" location="/usr/local"/>
11
	<property name="base_dir" location="./"/>	
12
	<!--property name="base_dir" location="D:\java\workspaces\osg_2_2_1-snapshot\ext3Dgui\target\ext3Dgui-1.0-SNAPSHOT-distribution\ext3Dgui-1.0-SNAPSHOT\win\	"/-->
13
	<property name="izpack_dir" location="../../../build/distribution/IzPack/"/>
14
	<property name="dir_libs" location="${izpack_dir}/lib"/>
15
	<property name="INSTALL_FILE" location="install_15.xml"/>
16
	<property name="JARNAME" location="default_name_installer-WIN"/>
17
	
18
	<taskdef name="izpack" classpath="${dir_libs}/compiler.jar" classname="com.izforge.izpack.ant.IzPackTask"/>
19
	
20
	<target name="init">
21
		<izpack input="${INSTALL_FILE}" 
22
				output="${JARNAME}" 
23
				installerType="standard" 
24
				basedir="${base_dir}" 
25
				izPackDir="${izpack_dir}/"/>
26
	</target>
27
	
28
	<target name="clean">
29
		<delete>
30
			<fileset dir=".">
31
			    <include name="**.zip"/>
32
			</fileset>
33
		</delete>
34
		<delete dir="bin" />
35
		<delete dir="extensions" />
36
	</target>
37
	
38
</project>
tags/tmp_build/build/distribution/example-distribution/win-distribution/distribution-win32.xml
1
<assembly>
2
  <id>distribution</id>
3
  <formats>
4
    <format>dir</format>
5
  </formats>
6
  <includeBaseDirectory>true</includeBaseDirectory>
7
  <!-- baseDirectory>d:/java/distri</baseDirectory-->
8
  <fileSets>
9
	<!-- Extructure for the extension -->
10
    <fileSet>
11
      <directory>/config</directory>
12
	  <outputDirectory>/win/bin/${extension-distribution}</outputDirectory>
13
    </fileSet>
14
	<fileSet>
15
      <directory>/images</directory>
16
	  <outputDirectory>/win/bin/${extension-distribution}/images</outputDirectory>
17
    </fileSet>
18
	<!-- Extructure for the native libraries -->
19
	<fileSet>
20
      <directory>${basedir}/../binaries/w32/3D/</directory>
21
	  <outputDirectory>/win/lib</outputDirectory>
22
    </fileSet>
23
  </fileSets>
24
  <files>
25
    <file>
26
      <source>build.number</source>
27
      <outputDirectory>/win/bin/${extension-distribution}</outputDirectory>
28
    </file>
29
  </files>
30
  <!-- *********************************************************************** -->
31
  <!-- *													   *-->
32
  <!-- ***********************************************************************-->
33
  <dependencySets>
34
    <dependencySet>
35
	  <outputDirectory>/win/bin/${extension-distribution}/lib/</outputDirectory>
36
	  <includes>
37
        <include>org.gvsig.osgvp.libosgvp:*</include>
38
		<include>jogl:*</include>
39
		<include>org.gvsig:lib3DMap</include>
40
		<include>org.gvsig:libCacheService</include>
41
		<include>org.gvsig:ext3Dgui</include>
42
      </includes>
43
    </dependencySet>
44
	 <dependencySet>
45
	  <outputDirectory>/win/bin/${gvsig-extension-distribution}/lib</outputDirectory>
46
	  <includes>
47
        <include>org.gvsig:lib3DMap-share</include>
48
	  </includes>
49
    </dependencySet>
50
  </dependencySets>
51
</assembly>
tags/tmp_build/build/distribution/example-distribution/win-distribution/installer_files/README.txt
1
gvSIG v1.0 RC1
2

  
3

  
4
Application Requirements:
5

  
6
? ? - System
7

  
8
? ? ? ? ? At least: Pentium III / 256 MB RAM.
9

  
10
? ? ? ? ? Recommended: Pentium 4 / 512 MB RAM.
11

  
12
????????? OSes: platforms Windows and Linux.
13
????????Tested in Win98/XP, Linux Suse 8.2/9.0/9.2 and Linux Debian(Lliurex).
14

  
15

  
16
? ? - Installed Software (available in http://www.gvsig.gva.es or in http://java.sun.com)
17

  
18
????????? Java VM 1.4.2 (06 or above).
19

  
20
????????? JAI (Java Advanced Imaging).
21

  
22
????????? JAI Image I/O.
23

  
24
Note: The JAI and JAI Image I/O must be installed into the same Java VM that runs gvSIG.
25

  
26

  
27
Further information and support:
28

  
29
? ? Official web site:
30

  
31
? ? ? ? http://www.gvsig.gva.es
32

  
33
? ? Mailing lists:
34

  
35
? ? ? ? http://runas.cap.gva.es/mailman/listinfo/gvsig_usuarios (users).
36

  
37
? ? ? ? http://runas.cap.gva.es/mailman/listinfo/gvsig_desarrolladores (developers).
38

  
39
? ? ? ? http://runas.cap.gva.es/mailman/listinfo/gvsig_internacional (non-spanish users and developers).
tags/tmp_build/build/distribution/example-distribution/win-distribution/installer_files/install.bat
1
java -jar JARNAME
tags/tmp_build/build/distribution/example-distribution/win-distribution/installer_files/LLIG-ME.txt
1
gvSIG v1.0 RC1
2

  
3

  
4
Requisits de l'aplicaci?:
5

  
6
? ? - Sistema
7

  
8
? ? ? ? ? M?nims: Pentium III / 256 MB RAM.
9

  
10
? ? ? ? ? Recomanables: Pentium 4 / 512 MB RAM.
11

  
12
? ? ? ? ? Sistemes operatius: plataformes Windows i Linux.
13
? ? ? ? Provat en Win98/XP, Linux Suse 8.2/9.0/9.2 i Linux Debian(Lliurex).
14

  
15

  
16
? ? - Programari instal?lat (disponible en http://www.gvsig.gva.es o en http://java.sun.com)
17

  
18
? ? ? ? ? M?quina Virtual Java 1.4.2 (06 o superior).
19

  
20
? ? ? ? ? JAI (Java Advanced Imaging).
21

  
22
? ? ? ? ? JAI Image I/O.
23

  
24

  
25
Nota: les libreries JAI i JAI Image I/O han d'estar instal?lades sobre la M?quina Virtual Java que gvSIG utilitze en l'execuci?.
26

  
27

  
28
M?s informaci? ? suport:
29

  
30
? ? Web oficial del projecte:
31

  
32
? ? ? ? http://www.gvsig.gva.es
33

  
34
? ? Llistes de distribuci?:
35

  
36
? ? ? ? http://runas.cap.gva.es/mailman/listinfo/gvsig_usuarios (suport per a usuaris).
37

  
38
? ? ? ? http://runas.cap.gva.es/mailman/listinfo/gvsig_desarrolladores (suport per a desenvolupadors).
39

  
40
? ? ? ? http://runas.cap.gva.es/mailman/listinfo/gvsig_internacional (suport per a usuaris o desenvolupadors de parla no-hispana).
41

  
42

  
tags/tmp_build/build/distribution/example-distribution/win-distribution/installer_files/LEEME.txt
1
gvSIG v1.0 RC1
2

  
3
Requisitos de la aplicaci?n:
4

  
5
? ? - Sistema
6

  
7
? ? ? ? ? M?nimos: Pentium III / 256 MB RAM.
8

  
9
? ? ? ? ? Recomendables: Pentium 4 / 512 MB RAM.
10

  
11
? ? ? ? ? Sistemas operativos: plataformas Windows y Linux.
12
? ? ? ? Probado en Win98/XP, Linux Suse 8.2/9.0/9.2 y Linux Debian(Lliurex).
13

  
14

  
15
? ? - Software instalado (diponible en http://www.gvsig.gva.es o en http://java.sun.com)
16

  
17
? ? ? ? ? M?quina Virtual Java 1.4.2 (06 o superior).
18

  
19
? ? ? ? ? JAI (Java Advanced Imaging).
20

  
21
? ? ? ? ? JAI Image I/O.
22

  
23

  
24
Nota: Las librer?as JAI y JAI Image I/O deben estar instaladas sobre la M?quina Virtual Java que gvSIG utilice en su ejecuci?n.
25

  
26

  
27
M?s informaci?n y soporte:
28

  
29
? ? Web oficial del proyecto:
30

  
31
? ? ? ? http://www.gvsig.gva.es
32

  
33
? ? Listas de distribuci?n:
34

  
35
? ? ? ? http://runas.cap.gva.es/mailman/listinfo/gvsig_usuarios (soporte para usuarios).
36

  
37
? ? ? ? http://runas.cap.gva.es/mailman/listinfo/gvsig_desarrolladores (soporte para desarrolladores).
38

  
39
? ? ? ? http://runas.cap.gva.es/mailman/listinfo/gvsig_internacional (soporte para usuarios o desarrolladores de habla no hispana).
tags/tmp_build/build/distribution/example-distribution/win-distribution/Notas_asociaciacion_archivos.txt
1

  
2
Pareceser que hay que a?adir unas claves al registro... 
3
puede hacerse generando un fichero .reg 
4
con las claves preparadas y usando el regedit en modo silencioso
5

  
6
el comando es:
7
  regedit /s fichero.reg
8

  
9

  
10
la claves son:
11
HKCR\{ext}  = {typeAbr}
12
HKCR\{typeAbr}\ = {typeName}
13
HKCR\{typeAbr}\DefaultIcon = {FileIcon}
14
HKCR\{typeAbr}\shell\open\command = {exeCommand}
15

  
16

  
17
estas no parecen necesarias:
18
HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\{ext}\Application = {exeName}
19
HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\{ext}\OpenWithList\a = {exeName}
20

  
21
donde:
22
{ext} = ".gvp"
23
{typeAbr} ="gvSIGProject"
24
{typeName} ="gvSIG Project file"
25
{FileIcon} = "gvSIG.ico" || "gvSIG.exe"
26
{exeCommand} = "gvSIG.exe %L"
27
{exeName} = "gvSIG.exe"
28

  
29

  
30
Ejeplo de fichero .reg:
31
REGEDIT4
32

  
33
[HKEY_CLASSES_ROOT\.gvp]
34
@="gvSIGProject"
35

  
36
[HKEY_CLASSES_ROOT\gvSIGProject]
37
@="gvSIG Project file"
38

  
39
[HKEY_CLASSES_ROOT\gvSIGProject\DefaultIcon]
40
@="C:\\Archivos de programas\\gvSIG_1.0\\bin\\ico-gvSIG.ico,0"
41

  
42

  
43
[HKEY_CLASSES_ROOT\gvSIGProject\shell\open]
44
@="Abrir"
45

  
46
[HKEY_CLASSES_ROOT\gvSIGProject\shell\open\command]
47
@="C:\\Archivos de programas\\gvSIG_1.0\\bin\\gvSIG.exe \"%1\""
48

  
49

  
50

  
51

  
52

  
53

  
54

  
55

  
56

  
57

  
58

  
59

  
60

  
61
*******************************************************************
62
URL's y recortes:
63

  
64

  
65
http://en.wikipedia.org/wiki/Windows_registry
66

  
67
http://www.akadia.com/services/windows_registry_tutorial.html
68

  
69
http://webtools.live2support.com/windows/
70

  
71

  
72

  
73

  
74

  
75

  
76

  
77
http://www.freevbcode.com/ShowCode.asp?ID=2799
78
******************
79
usando VB
80

  
81

  
82
Public Sub associate(EXT As String, FileType As String, _
83
   FileName As String)
84
On Error Resume Next
85
Dim b As Object
86
Set b = CreateObject("wscript.shell")
87
b.regwrite "HKCR\" & EXT & "\", FileType
88
b.regwrite "HKCR\" & FileType & "\", "MY file"
89
b.regwrite "HKCR\" & FileType & "\DefaultIcon\", FileName
90
b.regwrite "HKCR\" & FileType & "\shell\open\command\", _
91
   FileName & " %L"
92
b.regdelete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\" & EXT & "\Application"
93
b.regwrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\" & EXT & "\Application", FileName
94
b.regdelete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\" & EXT & "\OpenWithList\"
95
b.regwrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\" & EXT & "\OpenWithList\a", FileName
96

  
97
End Sub
98

  
99
'Sample Usage
100
Private Sub Form_Load()
101
associate ".jpg", "JPGFile", _
102
   "C:\Program Files\Accessories\MSPAINT.EXE"
103
Unload Me
104
End Sub
105

  
106

  
107
****************
108

  
109

  
110
http://www.ss64.com/nt/:
111
http://www.ss64.com/nt/ftype.html
112
**************************************************************************
113
FTYPE
114

  
115
Display or change the link between a FileType and an executable program
116

  
117
Syntax
118
   FTYPE fileType=executable_path
119

  
120
   FTYPE
121

  
122
   FTYPE fileType
123

  
124
   FTYPE fileType=
125

  
126
Key
127
   fileType        : The type of file
128

  
129
   executable_path : The executable program including any command line parameters             
130

  
131
More than one file extension may be associated with the same File Type.
132
e.g. both the extension .JPG and the extension .JPEG may be associated with the File Type "jpegfile"
133

  
134
File Types can be displayed in the Windows Explorer GUI: [View, Options, File Types] however the spelling is usually different to that expected by the FTYPE command e.g. the File Type "txtfile" is displayed in the GUI as "Text Document"and "jpegfile" is displayed as "image/jpeg"
135

  
136
Several FileTypes can be linked to the same executable application, but
137
one FileType cannot be linked to more than one executable application.
138

  
139
FTYPE file type will display the current executable program for that file type.
140

  
141
FTYPE without any parameters will display all FileTypes and the executable program for each.
142

  
143
Defining command line parameters
144

  
145
It is almost always necessary to supply command line parameters so that when a document is opened not only is the relevant application loaded into memory but the document itself also loaded into the application. To make this happen the filename of the document must be passed back to the application.
146

  
147
Command line parameters are exactly like batch file parameters, %0 is the executable program and %1 will reference the document filename
148

  
149
so a simple command line might be:
150

  
151
MyApplication.exe "%1"
152

  
153
If any further parameters are required by the application they can be passed as %2, %3. To pass ALL parameters to an application use %*. To pass all the remaining parameters starting with the nth parameter, use %~n where n is between 2 and 9.
154

  
155
The FileType should always be created before making a File Association
156

  
157
For example:
158

  
159
FTYPE htmlfile="C:\PROGRA~1\Plus!\MICROS~1\iexplore.exe" -nohome
160
ASSOC .html=htmlfile
161

  
162
FTYPE pagemill.html=C:\PROGRA~1\Adobe\PAGEMI~1.0\PageMill.exe "%1"
163
ASSOC .html=pagemill.html
164

  
165
FTYPE rtffile="C:\Program Files\Windows NT\Accessories\WORDPAD.EXE" "%1"
166
ASSOC .rtf=rtffile
167

  
168
FTYPE word.rtf.8="C:\Program Files\Microsoft Office\Office\winword.exe" /n
169
ASSOC .rtf=word.rtf.8
170

  
171
Switching a File Association between multiple applications
172

  
173
If you have multiple applications that use the same file extension, the ASSOC command can be used to switch the file extension between the different FileTypes.
174

  
175
Deleting a FileType
176

  
177
Specify executable_path=nothing and the FTYPE command will delete the executable_path for that FileType.
178
For example:
179
FTYPE htmlfile=
180

  
181
Backing up your FileTypes
182

  
183
FTYPE >backup_types.txt
184
ASSOC >backup_ext.txt
185

  
186
Restoring your FileTypes from a Backup
187

  
188
FOR /F "tokens=* delims=" %G IN (backup_types.txt) DO FTYPE %G
189
FOR /F "tokens=* delims=" %G IN (backup_ext.txt) DO ASSOC %G
190

  
191
This will recreate the CLASS id's in the registry at HKey_Classes_Root\.<file extension>
192
If you put the commands above in a batch file change the %G to be %%G
193

  
194
Using File associations at the command line
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff