Revision 335

View differences:

org.gvsig.scripting.app/tags/gvSIG_v2_0_0_Build_2042/prepare-workspace.xml
1
<project name="org.gvsig.initial.build" default="prepare-workspace">
2
	
3
	<dirname property="org.gvsig.initial.build.basedir" file="${ant.file.org.gvsig.initial.build}"/>
4
	
5
	<property name="workspace.basedir" 
6
			  value="${org.gvsig.initial.build.basedir}/.."/>
7
	<property name="build.basedir" 
8
		      value="${workspace.basedir}/org.gvsig.maven.base.build"
9
		      description="Eclipse workspace location"/>
10
	<property name="build.jar.version" 
11
			 	  value="1.0.4" />
12
	<property name="build.jar.file" 
13
		 	  value="org.gvsig.maven.base.build-${build.jar.version}.jar" />
14
	
15
	<target name="prepare-workspace">
16
		
17
		<mkdir dir="target"/>
18
	
19
		<!-- Get the build jar file -->
20
		<get src="http://gvsig-desktop.forge.osor.eu/downloads/pub/projects/gvSIG-desktop/maven-repository/org/gvsig/org.gvsig.maven.base.build/${build.jar.version}/${build.jar.file}" 
21
			 dest="target/${build.jar.file}"
22
			 verbose="true"/>
23
		
24
		<!-- Unzip de build jar file into the workspace root folder -->
25
		<unzip src="target/${build.jar.file}"
26
		       dest="${workspace.basedir}">
27
		    <patternset>
28
		        <exclude name="META-INF/**"/>
29
		    </patternset>
30
		</unzip>
31
		
32
		<chmod dir="${build.basedir}/maven/bin" perm="u+x" includes="m2,mvn,mvnDebug"/>
33
		
34
		<!-- Copy the maven launchers to the workspace metadata folder -->
35
		<copy todir="${workspace.basedir}/.metadata">
36
		    <fileset dir="${build.basedir}/eclipse-launchers"/>
37
		</copy>
38
		
39
		<!-- Configure the eclipse workspace -->
40
		<ant antfile="${build.basedir}/maven-goals.xml" target="mvn-configure-eclipse-workspace"/>
41

  
42
		<!-- Configure the gvSIG profile -->
43
		<ant antfile="${build.basedir}/check-gvsig-profile.xml" target="initialize"/>
44

  
45
		<!-- Compile, install and generate eclipse projects -->
46
		<ant antfile="${build.basedir}/maven-goals.xml" target="mvn-install-and-eclipse-eclipse"/>
47
		
48
		<echo>INFORMATION!!!</echo>
49
		<echo>Restart eclipse and then proceed to import the subprojects contained into the main project</echo>
50
		
51
		<!-- TODO: copiar al proyecto de configuración general -->
52
	</target>
53
 	
54
	<target name="clean">
55
		<delete dir="target"/>
56
	</target>
57

  
58
</project>
0 59

  
org.gvsig.scripting.app/tags/gvSIG_v2_0_0_Build_2042/pom.xml
1
<?xml version="1.0" encoding="ISO-8859-1"?>
2

  
3
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5
	<modelVersion>4.0.0</modelVersion>
6
	<artifactId>org.gvsig.scripting.app</artifactId>
7
	<packaging>pom</packaging>
8
	<version>1.0.0-SNAPSHOT</version>
9
	<name>org.gvsig.scripting.app</name>
10
	<description>Scripting support for gvSIG</description>
11
	<url>http://gvsig-desktop.forge.osor.eu/downloads/pub/projects/gvSIG-desktop/docs/reference/org.gvsig.scripting.app/${project.version}</url>
12
	<parent>
13
		<groupId>org.gvsig</groupId>
14
		<artifactId>org.gvsig.maven.base.extension.pom</artifactId>
15
		<version>1.0.8-SNAPSHOT</version>
16
	</parent>
17

  
18
	<scm>
19
		<connection>scm:svn:https://svn.forge.osor.eu/svn/gvsig-scripting/trunk</connection>
20
		<developerConnection>scm:svn:https://svn.forge.osor.eu/svn/gvsig-scripting/trunk</developerConnection>
21
		<url>https://forge.osor.eu/plugins/scmsvn/viewcvs.php/trunk/org.gvsig.scripting.app/?root=gvsig-scripting</url>
22
	</scm>
23

  
24
	<developers>
25
		<developer>
26
			<id>jjdelcerro</id>
27
			<name>Joaqu?n Jos? del Cerro</name>
28
			<email>jjdelcerro@gvsig.org</email>
29
			<roles>
30
				<role>Architect</role>
31
				<role>Developer</role>
32
			</roles>
33
		</developer>
34
		<developer>
35
			<id>jbadia</id>
36
			<name>Jos? Bad?a</name>
37
			<email>badia_jos@gva.es</email>
38
			<roles>
39
				<role>Developer</role>
40
			</roles>
41
		</developer>
42
	</developers>
43

  
44
	<distributionManagement>
45
		<site>
46
			<id>gvsig-repository</id>
47
			<url>scp://shell.forge.osor.eu/home/groups/gvsig-desktop/www/downloads/pub/projects/gvSIG-desktop/docs/reference/org.gvsig.scripting.app/${project.version}</url>
48
		</site>
49
	</distributionManagement>
50
	<repositories>
51
		<repository>
52
			<id>gvsig-public-http-repository</id>
53
			<name>gvSIG maven public HTTP repository</name>
54
			<url>http://gvsig-desktop.forge.osor.eu/downloads/pub/projects/gvSIG-desktop/maven-repository</url>
55
			<releases>
56
				<enabled>true</enabled>
57
				<updatePolicy>daily</updatePolicy>
58
				<checksumPolicy>warn</checksumPolicy>
59
			</releases>
60
			<snapshots>
61
				<enabled>true</enabled>
62
				<updatePolicy>daily</updatePolicy>
63
				<checksumPolicy>warn</checksumPolicy>
64
			</snapshots>
65
		</repository>
66
	</repositories>
67
	<build>
68
		<plugins>
69
            <plugin>
70
                <groupId>org.apache.maven.plugins</groupId>
71
                <artifactId>maven-compiler-plugin</artifactId>
72
                <configuration>
73
                    <source>1.6</source>
74
                    <target>1.6</target>
75
                </configuration>
76
            </plugin>
77
			<plugin>
78
				<groupId>org.apache.maven.plugins</groupId>
79
				<artifactId>maven-release-plugin</artifactId>
80
				<configuration>
81
					<tagBase>https://svn.forge.osor.eu/svn/gvsig-scripting/tags</tagBase>
82
				</configuration>
83
			</plugin>
84
            <plugin>
85
                <groupId>org.codehaus.mojo</groupId>
86
                <artifactId>animal-sniffer-maven-plugin</artifactId>
87
                <executions>
88
                    <execution>
89
                        <id>check-java-api</id>
90
                        <phase>test</phase>
91
                        <goals>
92
                            <goal>check</goal>
93
                        </goals>
94
                        <configuration>
95
                            <signature>
96
                                <groupId>org.codehaus.mojo.signature</groupId>
97
                                <artifactId>java16</artifactId>
98
                                <version>1.0</version>
99
                            </signature>
100
                        </configuration>
101
                    </execution>
102
                </executions>
103
            </plugin>
104
		</plugins>
105
	</build>
106
	<dependencyManagement>
107
		<dependencies>
108
			<dependency>
109
				<groupId>org.gvsig</groupId>
110
				<artifactId>org.gvsig.andami</artifactId>
111
				<version>2.0-SNAPSHOT</version>
112
			</dependency>
113
			<dependency>
114
				<groupId>org.gvsig</groupId>
115
				<artifactId>org.gvsig.tools.lib</artifactId>
116
				<version>3.0.0-SNAPSHOT</version>
117
			</dependency>
118
			<dependency>
119
				<groupId>org.gvsig</groupId>
120
				<artifactId>org.gvsig.about.api</artifactId>
121
				<version>1.0.0-SNAPSHOT</version>
122
			</dependency>
123
			<dependency>
124
				<groupId>org.gvsig</groupId>
125
				<artifactId>org.gvsig.scripting.lib.api</artifactId>
126
				<version>1.0.0-SNAPSHOT</version>
127
			</dependency>
128
			<dependency>
129
				<groupId>org.gvsig</groupId>
130
				<artifactId>org.gvsig.scripting.swing.api</artifactId>
131
				<version>1.0.0-SNAPSHOT</version>
132
			</dependency>
133
			<dependency>
134
				<groupId>org.gvsig</groupId>
135
				<artifactId>org.gvsig.scripting.lib.impl</artifactId>
136
				<version>1.0.0-SNAPSHOT</version>
137
			</dependency>
138
			<dependency>
139
				<groupId>org.gvsig</groupId>
140
				<artifactId>org.gvsig.scripting.swing.impl</artifactId>
141
				<version>1.0.0-SNAPSHOT</version>
142
			</dependency>
143
		</dependencies>
144
	</dependencyManagement>
145
	<modules>
146
		<module>org.gvsig.scripting.app.extension</module>
147
	</modules>
148
	<properties>
149
		<package.info.state>alpha2</package.info.state>
150
	</properties>
151

  
152
</project>
0 153

  
org.gvsig.scripting.app/tags/gvSIG_v2_0_0_Build_2042/README.txt
1
The first time you checkout the current project to a new workspace, 
2
you have to prepare it to be able to work easily with maven from
3
eclipse itself.
4

  
5
Perform the following steps:
6

  
7
1.- Launch the *prepare-workspace.xml* ant build file. 
8
    You can do it by loading the file into the ant view, 
9
    and running the default task, or right-clicking the 
10
    file from the package explorer or the navigator and
11
    select the option: *Run as > Ant build*. 
12
    
13
2.- Restart eclipse.
14

  
15
3.- Import the subprojects of the project you have just checked out.
16

  
17
Those steps are only needed once per workspace.     
18

  
0 19

  
org.gvsig.scripting.app/tags/gvSIG_v2_0_0_Build_2042/distribution/distribution.xml
1
<assembly>
2
</assembly>
0 3

  
org.gvsig.scripting.app/tags/gvSIG_v2_0_0_Build_2042/org.gvsig.scripting.app.extension/src/test/java/org/gvsig/scripting/app/extension/AppTest.java
1
/* gvSIG. Geographic Information System of the Valencian Government
2
 *
3
 * Copyright (C) 2007-2008 Infrastructures and Transports Department
4
 * of the Valencian Government (CIT)
5
 * 
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 2
9
 * of the License, or (at your option) any later version.
10
 * 
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 * 
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
19
 * MA  02110-1301, USA.
20
 * 
21
 */
22

  
23
package org.gvsig.scripting.app.extension;
24

  
25
import junit.framework.Test;
26
import junit.framework.TestCase;
27
import junit.framework.TestSuite;
28

  
29
/**
30
 * Unit test for simple App.
31
 */
32
public class AppTest 
33
    extends TestCase
34
{
35
    /**
36
     * Create the test case
37
     *
38
     * @param testName name of the test case
39
     */
40
    public AppTest( String testName )
41
    {
42
        super( testName );
43
    }
44

  
45
    /**
46
     * @return the suite of tests being tested
47
     */
48
    public static Test suite()
49
    {
50
        return new TestSuite( AppTest.class );
51
    }
52

  
53
    /**
54
     * Rigourous Test :-)
55
     */
56
    public void testApp()
57
    {
58
        assertTrue( true );
59
    }
60
}
0 61

  
org.gvsig.scripting.app/tags/gvSIG_v2_0_0_Build_2042/org.gvsig.scripting.app.extension/src/main/java/org/gvsig/scripting/app/extension/ScriptingExtension.java
1
/* gvSIG. Geographic Information System of the Valencian Government
2
 *
3
 * Copyright (C) 2007-2008 Infrastructures and Transports Department
4
 * of the Valencian Government (CIT)
5
 * 
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 2
9
 * of the License, or (at your option) any later version.
10
 * 
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 * 
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
19
 * MA  02110-1301, USA.
20
 * 
21
 */
22

  
23
package org.gvsig.scripting.app.extension;
24

  
25

  
26
import java.io.File;
27

  
28
import org.gvsig.andami.PluginsLocator;
29
import org.gvsig.andami.PluginsManager;
30
import org.gvsig.andami.plugins.Extension;
31
import org.gvsig.scripting.ScriptingLocator;
32
import org.gvsig.scripting.ScriptingManager;
33
import org.gvsig.scripting.swing.api.JScriptingComposer;
34
import org.gvsig.scripting.swing.api.ScriptingSwingLocator;
35
import org.gvsig.scripting.swing.api.ScriptingUIManager;
36
import org.gvsig.tools.dynobject.DynObject;
37
import org.gvsig.tools.swing.api.ToolsSwingLocator;
38
import org.gvsig.tools.swing.api.windowmanager.WindowManager;
39
import org.gvsig.tools.swing.impl.windowmanager.DefaultWindowManager;
40

  
41
public class ScriptingExtension extends Extension {
42

  
43
//	private static Logger LOG = LoggerFactory.getLogger(ScriptingExtension.class);
44
	
45
	public void execute(String actionCommand) {
46

  
47
	    ScriptingUIManager uimanager = ScriptingSwingLocator.getUIManager();
48
		WindowManager winmanager = ToolsSwingLocator.getWindowManager();
49
		
50
		if(actionCommand.toString().equals("Launcher")){
51
		    winmanager.showWindow(uimanager.createLauncher(), "Scripting Launcher", WindowManager.MODE.TOOL);
52
		} else { // Composer
53
			DynObject preferences = this.getPlugin().getPluginProperties();
54
			Boolean composerUseHisWindowManager = (Boolean) preferences.getDynValue("ComposerUseHisWindowManager");
55
			JScriptingComposer composer = uimanager.createComposer();
56
			if( composerUseHisWindowManager.booleanValue() ) {
57
				winmanager = new DefaultWindowManager();
58
				composer.setWindowManager(winmanager);
59
				winmanager.showWindow(composer, "Scripting Composer", WindowManager.MODE.WINDOW);
60
			} else {
61
				winmanager.showWindow(composer, "Scripting Composer", WindowManager.MODE.WINDOW);
62
			}
63
		}
64
		
65
	}
66
	
67
	public void initialize() {
68
		// Do nothing
69

  
70
	}
71
	
72

  
73

  
74
	public void postInitialize() {
75
	    super.postInitialize();
76
	    ScriptingManager manager = ScriptingLocator.getManager();
77
	    PluginsManager pluginManager = PluginsLocator.getManager();
78

  
79
	    File home = this.getPlugin().getPluginHomeFolder();
80
	    manager.setHomeFolder(home);
81
    	
82
	    File[] folders = pluginManager.getPluginsFolder().listFiles();
83
	    for (File folder : folders) {
84
		    File scriptsFolder = new File(folder,"scripting/scripts");
85
		    if( scriptsFolder.exists() ) {
86
		    	manager.registerSystemFolder(folder.getName(), scriptsFolder);
87
		    }
88
		    File libFolder = new File(folder,"scripting/lib");
89
		    if( libFolder.exists() ) {
90
		    	manager.addLibFolder(libFolder);
91
		    }
92
		}
93
	}
94
	
95
	public boolean isEnabled() {
96
		return true;
97
	}
98

  
99
	public boolean isVisible() {
100
		return true;
101
	}
102

  
103
}
0 104

  
org.gvsig.scripting.app/tags/gvSIG_v2_0_0_Build_2042/org.gvsig.scripting.app.extension/src/main/resources/config.xml
1
<?xml version="1.0" encoding="ISO-8859-1"?>
2
<plugin-config>
3
	<depends plugin-name="org.gvsig.app" />
4
	<resourceBundle name="text"/>
5
	<libraries library-dir="lib"/>
6
	<extensions>
7
		<extension class-name="org.gvsig.scripting.app.extension.ScriptingExtension"
8
			description="Extensi?n para el manejo de scripts en gvSIG."
9
			active="true"
10
			priority="1">
11
			<menu text="tools/Scripting"
12
				position="70080" 
13
				is_separator="true"/>
14
			<menu text="tools/Scripting/Scripting Launcher" 
15
				action-command="Launcher" position="7008010" icon="images/run-build-install.png"/>
16
			<menu text="tools/Scripting/Scripting Composer" 
17
				action-command="Composer" position="7008020" icon="images/run-build-file.png"/>
18
			<tool-bar name="Scripting" position="5">
19
				<action-tool icon="images/run-build-install.png" tooltip="Script_Launcher"
20
					action-command="Launcher" position="1"/>
21
				<action-tool icon="images/run-build-file.png" tooltip="Script_Composer"
22
					action-command="Composer" position="2"/>
23
			</tool-bar>
24
		</extension>	
25
	</extensions>
26
</plugin-config>
0 27

  
org.gvsig.scripting.app/tags/gvSIG_v2_0_0_Build_2042/org.gvsig.scripting.app.extension/src/main/resources/build.number
1
#Build Number for ANT. Do not edit!
2
#Tue Apr 28 16:00:47 CEST 2009
3
build.number=2005
org.gvsig.scripting.app/tags/gvSIG_v2_0_0_Build_2042/org.gvsig.scripting.app.extension/src/main/resources/gvsigsh
1
#!/bin/sh
2

  
3
#set -x
4

  
5
cd $(dirname $0)
6

  
7
if [ -f lib/org.gvsig.andami-2* ] ; then
8
  GVSIG_HOME=`dirname "$0"`
9
else
10
  if [ -f lib/org.gvsig.scripting.main-* ] ; then
11
    GVSIG_HOME=`dirname "$0"`/../../..
12
  else
13
    echo "Can't locate gvSIG installation folder"
14
    exit 1
15
  fi
16
fi
17

  
18
cd "${GVSIG_HOME}"
19
GVSIG_HOME=$PWD
20

  
21
###########################################
22
# Variables depending on the installation #
23
###########################################
24

  
25
# Java home
26
export JAVA_HOME=${JAVA_HOME}
27

  
28
###################################################################
29
# Variables not depending (at least directly) on the installation #
30
###################################################################
31

  
32
# gvSIG native libraries location
33
GVSIG_NATIVE_LIBS=${GVSIG_HOME}/native:${HOME}/.depman/lib
34

  
35
# Proj4 data files
36
export PROJ_LIB="${GVSIG_HOME}/gvSIG/extensiones/org.gvsig.crs.extension/data"
37

  
38
# GDAL data files
39
export GDAL_DATA="${GVSIG_HOME}/data/gdal"
40

  
41
# Native libraries path
42
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$GVSIG_NATIVE_LIBS"
43

  
44
# Go into the gvSIG installation folder, just in case
45
cd "${GVSIG_HOME}"
46

  
47
# Load gvSIG Andami jars and dependencies for the classpath
48
for d in ./lib gvSIG/extensiones/org.gvsig.app/lib gvSIG/extensiones/org.gvsig.scripting.app.extension/lib ; do
49
  for i in $d/*.jar ; do
50
    LIBRARIES="$LIBRARIES:$i"
51
  done
52
  for i in $d/*.zip ; do
53
    LIBRARIES="$LIBRARIES:$i"
54
  done
55
done
56

  
57
# echo "Initial libraries found: ${LIBRARIES}"
58

  
59
# gvSIG Andami launcher
60
GVSIG_LAUNCHER=org.gvsig.scripting.main.Main
61

  
62
# gvSIG initial classpath
63
GVSIG_CLASSPATH=$LIBRARIES
64

  
65
########################
66
# Memory configuration #
67
########################
68

  
69
# Initial gvSIG memory (M=Megabytes, G=Gigabytes)
70
GVSIG_INITIAL_MEM=128M
71
# Maximum gvSIG memory (M=Megabytes, G=Gigabytes)
72
GVSIG_MAX_MEM=512M
73
# Maximum permanent memory size: needed to load classes and statics
74
GVSIG_MAX_PERM_SIZE=96M
75

  
76

  
77
################
78
# Launch gvSIG #
79
################
80

  
81
# Temporary fix for number locale related formatting error with proj4.
82
export LC_NUMERIC=C
83

  
84
# For Java parameters documentation and more parameters look at:
85
# http://download.oracle.com/javase/6/docs/technotes/tools/windows/java.html
86
# http://www.oracle.com/technetwork/java/javase/tech/vmoptions-jsp-140102.html
87
# echo Launching gvSIG scripting framework: ${JAVA_HOME}/bin/java \
88
#        -Djava.library.path=/usr/lib:"${GVSIG_NATIVE_LIBS}" \
89
#        -cp $GVSIG_CLASSPATH \
90
#        -Xms${GVSIG_INITIAL_MEM} \
91
#        -Xmx${GVSIG_MAX_MEM} \
92
#        -XX:MaxPermSize=${GVSIG_MAX_PERM_SIZE} \
93
#        $GVSIG_LAUNCHER "$@"
94
#
95

  
96
java \
97
        -Djava.library.path=/usr/lib:"${GVSIG_NATIVE_LIBS}" \
98
        -cp $GVSIG_CLASSPATH \
99
        -Xms${GVSIG_INITIAL_MEM} \
100
        -Xmx${GVSIG_MAX_MEM} \
101
        -XX:MaxPermSize=${GVSIG_MAX_PERM_SIZE} \
102
        $GVSIG_LAUNCHER "$@"
103

  
104

  
org.gvsig.scripting.app/tags/gvSIG_v2_0_0_Build_2042/org.gvsig.scripting.app.extension/src/main/resources/plugin-persistence.def
1
<?xml version="1.0"?>
2
<!--
3
Definitions of plugin persistence org.gvsig.scripting.app.extension.  
4
 -->
5
<definitions>
6
  <version>1.0.0</version>
7
  <classes>
8
    <class name="org.gvsig.scripting.app.extension">
9
      <description>Persistence of scripting plugin</description>
10
      <fields>
11
        <field name="ComposerUseHisWindowManager" type="boolean" mandatory="true" defaultValue="true">
12
          <description>When true the composer use his window manager instead of the gvSIG Window manager.</description>
13
        </field>
14
      </fields>
15
    </class>
16
  </classes>
17
</definitions>  
org.gvsig.scripting.app/tags/gvSIG_v2_0_0_Build_2042/org.gvsig.scripting.app.extension/pom.xml
1
<?xml version="1.0" encoding="ISO-8859-1"?>
2

  
3
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5
	<modelVersion>4.0.0</modelVersion>
6
	<artifactId>org.gvsig.scripting.app.extension</artifactId>
7
	<packaging>jar</packaging>
8
	<name>Scripting framework</name>
9
	<parent>
10
		<groupId>org.gvsig</groupId>
11
		<artifactId>org.gvsig.scripting.app</artifactId>
12
		<version>1.0.0-SNAPSHOT</version>
13
	</parent>
14
	<dependencies>
15
		<dependency>
16
			<groupId>org.gvsig</groupId>
17
			<artifactId>org.gvsig.andami</artifactId>
18
		</dependency>
19
		<dependency>
20
			<groupId>org.gvsig</groupId>
21
			<artifactId>org.gvsig.app</artifactId>
22
			<version>2.0-SNAPSHOT</version>
23
            <scope>compile</scope>
24
		</dependency>
25
		<dependency>
26
			<groupId>org.gvsig</groupId>
27
			<artifactId>org.gvsig.tools.lib</artifactId>
28
		</dependency>
29
		<dependency>
30
			<groupId>org.gvsig</groupId>
31
			<artifactId>org.gvsig.tools.swing.impl</artifactId>
32
			<version>3.0.0-SNAPSHOT</version>
33
            <scope>compile</scope>
34
		</dependency>
35
		<dependency>
36
			<groupId>org.gvsig</groupId>
37
			<artifactId>org.gvsig.about.api</artifactId>
38
		</dependency>
39
		<dependency>
40
			<groupId>org.gvsig</groupId>
41
			<artifactId>org.gvsig.scripting.lib.api</artifactId>
42
		</dependency>
43
		<dependency>
44
			<groupId>org.gvsig</groupId>
45
			<artifactId>org.gvsig.scripting.swing.api</artifactId>
46
		</dependency>
47
		<dependency>
48
			<groupId>org.gvsig</groupId>
49
			<artifactId>org.gvsig.scripting.lib.impl</artifactId>
50
		</dependency>
51
		<dependency>
52
			<groupId>org.gvsig</groupId>
53
			<artifactId>org.gvsig.scripting.swing.impl</artifactId>
54
		</dependency>
55
		<dependency>
56
			<groupId>org.gvsig</groupId>
57
			<artifactId>org.gvsig.scripting.main</artifactId>
58
			<version>1.0.0-SNAPSHOT</version>
59
		</dependency>
60
	</dependencies>
61

  
62
	<profiles>
63
		<profile>
64
			<id>create-installer</id>
65
			<build>
66
				<plugins>
67
					<plugin>
68
						<groupId>org.gvsig</groupId>
69
						<artifactId>org.gvsig.installer.maven</artifactId>
70
						<configuration>
71
							<javaVM>j1_6</javaVM>
72
						</configuration>
73
					</plugin>
74
				</plugins>
75
			</build>
76
			<properties>
77
				<!--  gvSIG installation folder -->
78
    			<gvsig.install.dir>${basedir}/../../build/product</gvsig.install.dir>
79
    		</properties>
80
		</profile>
81
    	<profile>
82
    		<id>gvsig-install</id>
83
    		<activation>
84
    			<activeByDefault>true</activeByDefault>
85
    		</activation>
86
    		<properties>
87
				<!--  gvSIG installation folder -->
88
    			<gvsig.install.dir>${basedir}/../../build/product</gvsig.install.dir>
89
    		</properties>
90
    	</profile>
91
    </profiles>
92
</project>
0 93

  
org.gvsig.scripting.app/tags/gvSIG_v2_0_0_Build_2042/org.gvsig.scripting.app.extension/distribution/distribution.xml
1
<assembly>
2
	<id>distribution</id>
3
	<formats>
4
		<format>dir</format>
5
	</formats>
6
	<fileSets>
7
		<!-- Estructure for the extension -->
8
		<fileSet>
9
			<directory>src/main/resources</directory>
10
			<outputDirectory>${extension.install.dir.name}
11
			</outputDirectory>
12
		</fileSet>
13
	</fileSets>
14
	<files>
15
		<file>
16
			<source>package.info</source>
17
			<outputDirectory>${extension.install.dir.name}
18
			</outputDirectory>
19
		</file>
20
	</files>
21
	<dependencySets>
22
		<dependencySet>
23
			<outputDirectory>${extension.install.dir.name}/${library-dir}
24
			</outputDirectory>
25
			<includes>
26
				<include>org.gvsig:org.gvsig.scripting.app.extension</include>
27
				<!-- Only needed if we want to support Java 1.5
28
				<include>org.apache.bsf:bsf-api</include>
29
				-->
30
				<include>org.ini4j:ini4j</include>
31
				<include>org.codehaus.groovy:groovy-all</include>
32
				<!--
33
				JRuby doesn't work by default on gvSIG, maybe the problems are 
34
				related to the PluginClassLoader or to the way JRuby sets its
35
				internal classpath, so maybe setting the system property
36
				"org.jruby.embed.class.path" may solve the problem.
37
				See:
38
				http://kenai.com/projects/jruby/pages/RedBridge#Class_Path_%28Load_Path%29
39
				<include>org.jruby:jruby</include>
40
				-->
41
				<!-- Already included since Java 1.6
42
				<include>rhino:js</include>
43
				-->
44
				<include>commons-cli:commons-cli</include>
45
				<include>org.python:jython</include>
46
				<include>net.sourceforge.thinlet:thinlet</include>
47
				<include>org.gvsig:org.gvsig.scripting.thing</include>
48
				<include>org.gvsig:org.gvsig.scripting.lib.api</include>
49
				<include>org.gvsig:org.gvsig.scripting.swing.api</include>
50
				<include>org.gvsig:org.gvsig.scripting.lib.impl</include>
51
				<include>org.gvsig:org.gvsig.scripting.swing.impl</include>
52
				<include>org.gvsig:org.gvsig.scripting.main</include>
53
			</includes>
54
		</dependencySet>
55
	</dependencySets>
56
</assembly>
0 57

  
org.gvsig.scripting.app/tags/gvSIG_v2_0_0_Build_2042/org.gvsig.scripting.app.extension/buildNumber.properties
1
#maven.buildNumber.plugin properties file
2
#Wed Nov 23 09:50:07 CET 2011
3
buildNumber=30
0 4

  
org.gvsig.scripting.app/tags/gvSIG_v2_0_0_Build_2042/buildNumber.properties
1
#maven.buildNumber.plugin properties file
2
#Wed Nov 23 09:50:06 CET 2011
3
buildNumber=27
org.gvsig.scripting.app/tags/gvSIG_v2_0_0_Build_2042/.project
1
<?xml version="1.0" encoding="UTF-8"?>
2
<projectDescription>
3
	<name>org.gvsig.scripting.app</name>
4
	<comment></comment>
5
	<projects>
6
	</projects>
7
	<buildSpec>
8
	</buildSpec>
9
	<natures>
10
	</natures>
11
</projectDescription>
0 12

  

Also available in: Unified diff