Revision 30279

View differences:

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/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/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
    <properties>
53
        <build-dir>${basedir}/../build</build-dir>
54
    </properties>
55
	<modules>
56
		<module>../../../libInternationalization</module>
57
		<module>../../../libExceptions</module>
58
		<module>../../../libIverUtiles</module>
59
		<module>../../../libUIComponent</module>
60
		<module>../../../_fwAndami</module>
61
		<module>../../../libCorePlugin</module>
62
		<module>../../../libProjection</module>
63
		<module>../../../libRaster</module>
64
		<module>../../../libDriverManager</module>
65
		<module>../../../libRemoteServices</module>
66
		<module>../../../libDXF</module>
67
		<module>../../../libGPE</module>
68
		<module>../../../libGPE-XML</module>
69
		<module>../../../libGPE-GML</module>
70
		<module>../../../libGPE-KML</module>
71
<!--		<module>../../../libDwg</module>-->
72
		<module>../../../libJCRS</module>
73
		<module>../../../extJCRS</module>
74
		<module>../../../libGeoUtils</module>
75
		<module>../../../libFMap</module>
76
		<!--module>../../../openjdk-printing1.7</module-->
77
		<module>../../../appgvSIG</module>
78
		<module>../../../extRasterTools-SE</module>
79
<!--		<module>../../../extDwg</module>-->
80
<!--		<module>../../../extRemoteSensing</module>-->
81
		<module>../../../extIconThemeBase</module>
82
		<module>../../../extWMS</module>
83
		<module>../../../extWCS</module>
84
		<module>../../../extWFS2</module>
85
		<module>../../../extJDBC</module>
86
		<module>../../../extScripting</module>
87
		<module>../../../extCAD</module>
88
		<module>../../../extGPE-gvSIG</module>
89
	</modules>
90
</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-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/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-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

  
0 53

  
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>ftpes://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>ftpes://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/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
195

  
196
If you have a file association between .DOC and Word for Windows then at a command prompt you can open a document with any of the following commands:
197

  
198
Start "My Document.doc"
199
"Monthly Report.doc"
200
JULY.DOC
201

  
202
note that the file extension must be supplied for this to work
203

  
204
"True to type - Of a plant, or group of plants, which matches the accepted description of the cultivar to which it is assumed to belong"
205

  
206
Related Commands:
207

  
208
ASSOC - Change file extension associations
209
Batch file to list the application associated with a file extension
210
ASSOCIAT - One step file association (Resource Kit)
211

  
212
**************************************************************************
213

  
214
http://www.ss64.com/nt/assoc.html
215
*************************************************************************
216

  
217
ASSOC
218

  
219
Display or change the association between a file extension and a fileType
220

  
221
Syntax
222
   ASSOC .ext = [fileType]
223
   ASSOC
224
   ASSOC .ext
225
   ASSOC .ext =
226

  
227
Key
228
    .ext      : The file extension
229
    fileType  : The type of file 
230

  
231
A file extension is the last few characters in a FileName after the period.
232
So a file called JANUARY.HTML has the file extension .HTML
233

  
234
The File extension is used by Windows NT to determine the type of information stored in the file and therefore which application(s) will be able to display the information in the file. File extensions are not case sensitive and are not limited to 3 characters.
235

  
236
More than one file extension may be associated with the same File Type.
237
e.g. both the extension .JPG and the extension .JPEG may be associated with the File Type "jpegfile"
238

  
239
At any one time a given file extension may only be associated with one File Type.
240
e.g. If you change the extension .JPG so it is associated with the File Type "txtfile" then it's normal association with "jpegfile" will disappear. Removing the association to "txtfile" does not restore the association to "jpegfile"
241

  
242
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 ASSOC command e.g. the File Type "txtfile" is displayed in the GUI as "Text Document"and "jpegfile" is displayed as "image/jpeg"
243

  
244
The command ASSOC followed by just a file extension will display the current File Type for that extension.
245

  
246
ASSOC without any parameters will display all the current file associations.
247

  
248
ASSOC with ".ext=" will delete the association for that file extension.
249

  
250
Did you leave the Always Use This Program To Open This File option turned on?
251
To change it back so it prompts you to specify a program each time, just delete the association for that file type
252
ASSOC .ext=
253
[where .ext is the file extension].
254
Now when you double-click on a file of that type, the system will ask you what program you want to use.
255

  
256
Using the ASSOC command will edit values stored in the registry at HKey_Classes_Root\.<file extension>
257
Therefore it's possible to use registry permissions to protect a file extension and prevent any file association changes.
258

  
259
Examples:
260

  
261
Viewing file associations:
262

  
263
ASSOC .txt
264
ASSOC .doc
265
ASSOC >backup.txt
266

  
267
Editing file associations:
268

  
269
ASSOC .txt=txtfile
270
ASSOC .DIC=txtfile
271
ASSOC .html=Htmlfile
272

  
273
Deleting a file association:
274

  
275
ASSOC .html=
276

  
277
Repair .REG and .EXE file associations:
278

  
279
ASSOC .EXE=exefile
280
ASSOC .REG=regfile
281

  
282
Digging through CLASSES_ROOT entries often reveals more than one shell for the same application, for example the Apple Quick Time player has two entries, one to "open" (which gives an annoying nag screen) and one to just "play" the QT file:
283
[HKEY_CLASSES_ROOT\MOVFile\shell\open] and [play]
284

  
285
In cases like this you can change the default action e.g.
286
[HKEY_CLASSES_ROOT\MOVFile\shell]
287
@="play"
288

  
289
"Of all forms of caution, caution in love is perhaps the most fatal to true happiness" - Bertrand Russell
290

  
291
Related:
292

  
293
FTYPE - Edit file types (used in file extension associations)
294
Batch file to list the application associated with a file extension
295
ASSOCIAT - One step file association (Resource Kit)
296
Q162059 - Associate Internet Explorer with MS Office files
297
JSIFAQ - Tip 9715 - List File Types with executable path
298

  
299
****************************************************************
300

  
301

  
302
http://www.ss64.com/nt/associate.html
303
**********************************************************************
304
ASSOCIATE.exe (Resource Kit)
305

  
306
One step file association.
307

  
308
This utility does the job of both ASSOC and FTYPE, in one step. ASSOCIATE assigns an extension directly with an executable application. This is done by automatically adding a new FileType to the system registry.
309

  
310
Syntax
311
      ASSOCIATE .ext filename [/q /d /f]
312

  
313
Key
314
   .ext     : Extension to be associated.
315
   filename : Executable program to associate .ext with.
316
   /q       : Quiet - Suppress interactive prompts.
317
   /f       : Force - Force overwrite or delete without questions.
318
   /d       : Delete - Delete the association.
319

  
320
A file extension is the last few characters in a FileName after the period.
321
So a file called JANUARY.HTML has the file extension .HTML
322

  
323
The File extension is used by Windows NT to determine the type of information stored in the file and therefore which application(s) will be able to display the information in the file. File extensions are not case sensitive and are not limited to 3 characters.
324

  
325
Example: adding a File Association
326

  
327
To add the File Type "SQLfile"=Notepad.exe and also set the File Association of .SQL="SQLfile" run this command:
328

  
329
ASSOCIATE .SQL Notepad.exe
330

  
331
Example: Removing a File Association
332

  
333
ASSOCIATE .SQL /d
334

  
335
Note that /d will delete the File Association but will NOT delete the File Type.
336

  
337
File types created by Associate.exe are always given a name in the form xxxfile, where xxx is the file extension.
338

  
339
"There are three roads to ruin; women, gambling and technicians. The most pleasant is with women, the quickest is with gambling, but the surest is with technicians" - Georges Pompidou
340

  
341
Related Commands:
342

  
343
ASSOC Change file extension associations
344
FTYPE Display or modify file types used in file extension associations
345
**********************************************************************
346

  
347

  
348

  
349

  
350
WINDOWS 98
351

  
352

  
353
http://groups.google.com/group/alt.msdos.batch/browse_thread/thread/556321da29c9ca2e/e60e3330cd284b99?lnk=gst&q=file+association&rnum=2#e60e3330cd284b99
354
***************************************************************************
355

  
356
	
357
De:		William Allen - ver perfil
358
Fecha:		Mi? 26 mar 2003 14:28
359
Correo electr?nico: 		"William Allen" <_inval...@mayfly13.fsnet.co.uk>
360
Grupos: 		alt.msdos.batch
361
Sin calificar
362
Valoraci?n:	 
363
mostrar opciones
364
Responder | Responder al autor | Reenviar | Imprimir | Mensaje individual | Mostrar mensaje original | Notificar abuso | Buscar mensajes de este autor
365

  
366
"Robert Mark Bram" wrote in message
367
> I recently asked this question in alt.msdos.batch.nt -- but I need an answer
368
> for Win 98..
369

  
370
> Can use a batch file to create a windows file association?
371

  
372
Yes. Windows 95/98/ME users can use the Windows 98 Resource Kit
373
utility ASSOCIAT.EXE (cloned from the NT4 Resource Kit), which will
374
operate with the Windows 95/98/ME registries to create file associations
375
very easily. ASSOCIAT.EXE provides an informative ERRORLEVEL and
376
is designed for use in Batch files. Downloadable free from the Microsoft FTP site:
377
ftp://ftp.microsoft.com/Services/TechNet/samples/ps/win98/Reskit/FILE/
378

  
379
and click on file: ASSOCIAT.EXE
380

  
381
For syntax help with using ASSOCIAT.EXE, use the /? switch
382
associat /?
383

  
384
Full documentation, usage instructions, and syntax examples for Batch
385
usage of all the Windows 98 Resource Kit Batch tools (which you can
386
use in Windows 95 and ME, too):
387
ftp://ftp.microsoft.com/Services/TechNet/samples/ps/win98/reskit/help...
388
This is a fully indexed and searchable compiled help file. Although
389
each utility responds to the usual /? for brief help, this main file has
390
huge detail. When you have the file, look in the Contents section
391
under "Scripting Tools". 
392

  
393

  
394
*************************************************************************
395

  
396
PARA TODOS LOS WINDOWS
397

  
398
http://www.robvanderwoude.com/index.html
399
http://www.robvanderwoude.com/files/defopen.txt
400

  
401
defopen.bat
402

  
403
Create a default file association to Notepad and add "Open with Notepad", "Print with Notepad" and "Command Prompt Here" options to popup menus
404

  
405
************************************************************************
406
@ECHO OFF
407
:: No parameters required
408
IF NOT [%1]==[] GOTO Syntax
409

  
410
:: Choose the correct command processor for the current operating system
411
SET _cmd=
412
:: Variable to add shortcut to menu entry (NT only,
413
:: since COMMAND.COM cannot echo an ampersand)
414
SET _=
415
ECHO.%COMSPEC% | FIND /I "command.com" >NUL
416
IF NOT ERRORLEVEL 1 SET _cmd=command.com /e:4096
417
ECHO.%COMSPEC% | FIND /I "cmd.exe" >NUL
418
IF NOT ERRORLEVEL 1 SET _cmd=cmd.exe
419
IF [%_cmd%]==[cmd.exe] SET _=^&
420

  
421
:: Create a temporary .REG file
422
> "%Temp%.\DefOpen.reg" ECHO REGEDIT4
423
>>"%Temp%.\DefOpen.reg" ECHO.
424
ECHO Adding "Open with Notepad" entry
425
>>"%Temp%.\DefOpen.reg" ECHO [HKEY_CLASSES_ROOT\*\shell\open]
426
>>"%Temp%.\DefOpen.reg" ECHO @="%_%Open with Notepad"
427
>>"%Temp%.\DefOpen.reg" ECHO.
428
>>"%Temp%.\DefOpen.reg" ECHO [HKEY_CLASSES_ROOT\*\shell\open\command]
429
>>"%Temp%.\DefOpen.reg" ECHO @="notepad.exe \"%%1\""
430
>>"%Temp%.\DefOpen.reg" ECHO.
431
ECHO Adding "Print with Notepad" entry
432
>>"%Temp%.\DefOpen.reg" ECHO [HKEY_CLASSES_ROOT\*\shell\print]
433
>>"%Temp%.\DefOpen.reg" ECHO @="%_%Print with Notepad"
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff