Revision 34504

View differences:

trunk/extensions/org.gvsig.installer.app.extension/.project
1
<?xml version="1.0" encoding="UTF-8"?>
2
<projectDescription>
3
	<name>org.gvsig.installer.app.extension</name>
4
	<comment></comment>
5
	<projects>
6
	</projects>
7
	<buildSpec>
8
		<buildCommand>
9
			<name>org.eclipse.jdt.core.javabuilder</name>
10
			<arguments>
11
			</arguments>
12
		</buildCommand>
13
	</buildSpec>
14
	<natures>
15
		<nature>org.eclipse.jdt.core.javanature</nature>
16
	</natures>
17
</projectDescription>
0 18

  
trunk/extensions/org.gvsig.installer.app.extension/build.number
1
#Build Number for ANT. Do not edit!
2
#Tue Feb 01 14:14:12 CET 2011
3
build.number=1300
trunk/extensions/org.gvsig.installer.app.extension/src/main/java/org/gvsig/installer/app/extension/creation/MakePluginPackageWindow.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
/*
24
 * AUTHORS (In addition to CIT):
25
 * 2010 {Prodevelop}   {Task}
26
 */
27

  
28
package org.gvsig.installer.app.extension.creation;
29

  
30
import java.awt.BorderLayout;
31
import java.awt.Dimension;
32
import java.io.File;
33

  
34
import javax.swing.JPanel;
35

  
36
import org.gvsig.installer.app.extension.utils.WindowInstallerListener;
37
import org.gvsig.installer.swing.api.SwingInstallerLocator;
38
import org.gvsig.installer.swing.api.creation.MakePluginPackageWizard;
39
import org.gvsig.installer.swing.api.creation.MakePluginPackageWizardException;
40
import org.gvsig.tools.locator.LocatorException;
41

  
42
import org.gvsig.i18n.Messages;
43
import com.iver.andami.ui.mdiManager.IWindow;
44
import com.iver.andami.ui.mdiManager.WindowInfo;
45

  
46
/**
47
 * @author <a href="mailto:jpiera@gvsig.org">Jorge Piera Llodr&aacute;</a>
48
 */
49
public class MakePluginPackageWindow extends JPanel implements IWindow {
50

  
51
    private static final long serialVersionUID = 3423389124323013058L;
52
    WindowInfo windowInfo = null;
53

  
54
    public MakePluginPackageWindow(File applicationFolder, File pluginsFolder,
55
        File installFolder) throws LocatorException,
56
        MakePluginPackageWizardException {
57
        super();
58
        MakePluginPackageWizard makePluginPackageWizard =
59
            SwingInstallerLocator.getSwingInstallerManager()
60
                .createMakePluginPackageWizard(applicationFolder,
61
                    pluginsFolder, installFolder);
62
        makePluginPackageWizard
63
            .setWizardActionListener(new WindowInstallerListener(this));
64
        this.setLayout(new BorderLayout());
65
        add(makePluginPackageWizard, BorderLayout.CENTER);
66
    }
67

  
68
    public WindowInfo getWindowInfo() {
69
        if (windowInfo == null) {
70
            windowInfo =
71
                new WindowInfo(WindowInfo.MODELESSDIALOG
72
                    | WindowInfo.ICONIFIABLE | WindowInfo.RESIZABLE);
73
            Dimension dim = getPreferredSize();
74
            windowInfo.setWidth((int) dim.getWidth());
75
            windowInfo.setHeight((int) dim.getHeight());
76
            windowInfo.setTitle(Messages.getText("make_plugin_package"));
77
        }
78
        return windowInfo;
79
    }
80

  
81
    public Object getWindowProfile() {
82
        return WindowInfo.DIALOG_PROFILE;
83
    }
84
}
0 85

  
trunk/extensions/org.gvsig.installer.app.extension/src/main/java/org/gvsig/installer/app/extension/creation/MakePluginPackageExtension.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
/*
24
 * AUTHORS (In addition to CIT):
25
 * 2010 {Prodevelop}   {Task}
26
 */
27

  
28
package org.gvsig.installer.app.extension.creation;
29

  
30
import org.gvsig.installer.app.extension.GvSIGFolders;
31
import org.gvsig.installer.app.extension.InitializeLibraries;
32
import org.gvsig.installer.swing.api.SwingInstallerLocator;
33
import org.slf4j.Logger;
34
import org.slf4j.LoggerFactory;
35

  
36
import com.iver.andami.PluginServices;
37
import com.iver.andami.plugins.Extension;
38
import com.iver.cit.gvsig.Version;
39

  
40
/**
41
 * @author <a href="mailto:jpiera@gvsig.org">Jorge Piera Llodr&aacute;</a>
42
 */
43
public class MakePluginPackageExtension extends Extension {
44

  
45
    private static final Logger LOG = LoggerFactory
46
        .getLogger(MakePluginPackageExtension.class);
47

  
48
    public void execute(String actionCommand) {
49
        GvSIGFolders folders = new GvSIGFolders();
50

  
51
        try {
52
            PluginServices.getMDIManager().addCentredWindow(
53
                new MakePluginPackageWindow(folders.getApplicationFolder(),
54
                    folders.getPluginsFolder(), folders.getInstallFolder()));
55
        } catch (Exception e) {
56
            LOG.error("Error creating teh wizard to create an installer ", e);
57
        }
58
    }
59

  
60
    public void initialize() {
61
    	InitializeLibraries.initialize();
62
    }
63

  
64
    @Override
65
    public void postInitialize() {
66
        super.postInitialize();
67
        //Version version = ApplicationLocator.getManager().getVersion();
68
        SwingInstallerLocator.getSwingInstallerManager().setApplicationVersion(
69
            Version.format());
70
    }
71

  
72
    public boolean isEnabled() {
73
        return true;
74
    }
75

  
76
    public boolean isVisible() {
77
        return true;
78
    }
79

  
80
}
0 81

  
trunk/extensions/org.gvsig.installer.app.extension/src/main/java/org/gvsig/installer/app/extension/GvSIGFolders.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
package org.gvsig.installer.app.extension;
23

  
24
import java.io.File;
25

  
26
import com.iver.andami.Launcher;
27

  
28

  
29

  
30
/**
31
 * Gets the main gvSIG application folders.
32
 * 
33
 * @author gvSIG Team
34
 * @version $Id$
35
 */
36
public class GvSIGFolders {
37

  
38
    /**
39
     * Returns the gvSIG main application folder.
40
     * 
41
     * @return the gvSIG main application folder
42
     */
43
    public File getApplicationFolder() {
44
        // TODO: check if there is a better way to handle this
45
        return new File(System.getProperty("user.dir"));
46
    }
47

  
48
    /**
49
     * Returns the gvSIG plugins folder.
50
     * 
51
     * @return the gvSIG plugins folder
52
     */
53
    public File getPluginsFolder() {
54
        return new File(Launcher.getAndamiConfig().getPluginsDirectory())
55
            .getAbsoluteFile();
56
    }
57

  
58
    /**
59
     * Returns the default gvSIG folder with the installable package bundles.
60
     * 
61
     * @return the default gvSIG folder with the installable package bundles
62
     */
63
    public File getInstallFolder() {
64
        return new File(getApplicationFolder(), "install");
65
    }
66

  
67
}
0 68

  
trunk/extensions/org.gvsig.installer.app.extension/src/main/java/org/gvsig/installer/app/extension/InitializeLibraries.java
1
package org.gvsig.installer.app.extension;
2

  
3
import org.gvsig.installer.lib.api.InstallerLibrary;
4
import org.gvsig.installer.lib.impl.DefaultInstallerLibrary;
5
import org.gvsig.installer.prov.plugin.PluginInstallerProviderLibrary;
6
import org.gvsig.installer.swing.api.SwingInstallerLibrary;
7
import org.gvsig.installer.swing.impl.DefaultSwingInstallerLibrary;
8
import org.gvsig.tools.ToolsLibrary;
9
import org.gvsig.tools.library.Library;
10

  
11
public class InitializeLibraries {
12

  
13
	private static boolean initialized = false;
14
	
15
	public static void initialize(){
16

  
17
		if (initialized){
18
			return;
19
		}
20
		Library library = new ToolsLibrary();
21
		library.initialize();
22
		library.postInitialize();
23
		library = new InstallerLibrary();
24
		library.initialize();
25
		library.postInitialize();
26
		library = new DefaultInstallerLibrary();
27
		library.initialize();
28
		library.postInitialize();
29
		library = new SwingInstallerLibrary();
30
		library.initialize();
31
		library.postInitialize();
32
		library = new DefaultSwingInstallerLibrary();
33
		library.initialize();
34
		library.postInitialize();
35
		library = new PluginInstallerProviderLibrary();
36
		library.initialize();
37
		library.postInitialize();
38
		
39
		initialized = true;
40
	}
41

  
42
}
0 43

  
trunk/extensions/org.gvsig.installer.app.extension/src/main/java/org/gvsig/installer/app/extension/utils/WindowInstallerListener.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
/*
24
 * AUTHORS (In addition to CIT):
25
 * 2010 {Prodevelop}   {Task}
26
 */
27

  
28
package org.gvsig.installer.app.extension.utils;
29

  
30

  
31
import org.gvsig.installer.swing.api.wizard.InstallerWizardActionListener;
32
import org.gvsig.installer.swing.api.wizard.InstallerWizardPanel;
33

  
34
import com.iver.andami.PluginServices;
35
import com.iver.andami.ui.mdiManager.IWindow;
36

  
37
/**
38
 * @author <a href="mailto:jpiera@gvsig.org">Jorge Piera Llodr&aacute;</a>
39
 */
40
public class WindowInstallerListener implements InstallerWizardActionListener {
41

  
42
    private IWindow window = null;
43

  
44
    public WindowInstallerListener(IWindow window) {
45
        super();
46
        this.window = window;
47
    }
48

  
49
    public void closeWizard() {
50
        PluginServices.getMDIManager().closeWindow(window);
51
    }
52

  
53
    public void cancel(InstallerWizardPanel installerWizard) {
54
        PluginServices.getMDIManager().closeWindow(window);
55
    }
56

  
57
    public void finish(InstallerWizardPanel installerWizard) {
58
        PluginServices.getMDIManager().closeWindow(window);
59
    }
60

  
61
}
0 62

  
trunk/extensions/org.gvsig.installer.app.extension/src/main/java/org/gvsig/installer/app/extension/execution/InstallPackageWindow.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
/*
24
 * AUTHORS (In addition to CIT):
25
 * 2010 {Prodevelop}   {Task}
26
 */
27

  
28
package org.gvsig.installer.app.extension.execution;
29

  
30
import java.awt.BorderLayout;
31
import java.awt.Dimension;
32
import java.io.File;
33

  
34
import javax.swing.JPanel;
35

  
36
import org.gvsig.i18n.Messages;
37
import org.gvsig.installer.app.extension.utils.WindowInstallerListener;
38
import org.gvsig.installer.swing.api.SwingInstallerLocator;
39
import org.gvsig.installer.swing.api.execution.InstallPackageWizard;
40
import org.gvsig.installer.swing.api.execution.InstallPackageWizardException;
41
import org.gvsig.tools.locator.LocatorException;
42

  
43
import com.iver.andami.ui.mdiManager.IWindow;
44
import com.iver.andami.ui.mdiManager.WindowInfo;
45

  
46
/**
47
 * @author <a href="mailto:jpiera@gvsig.org">Jorge Piera Llodr&aacute;</a>
48
 */
49
public class InstallPackageWindow extends JPanel implements IWindow {
50

  
51
    private static final long serialVersionUID = 4719868181091291809L;
52
    WindowInfo windowInfo = null;
53

  
54
    public InstallPackageWindow(File applicationFolder, File pluginsFolder,
55
        File installFolder) throws LocatorException,
56
        InstallPackageWizardException {
57
        super();
58
        InstallPackageWizard installPackageWizard =
59
            SwingInstallerLocator.getSwingInstallerManager()
60
                .createInstallPackageWizard(applicationFolder, pluginsFolder,
61
                    installFolder);
62
        installPackageWizard
63
            .setWizardActionListener(new WindowInstallerListener(this));
64
        this.setLayout(new BorderLayout());
65
        add(installPackageWizard, BorderLayout.CENTER);
66
    }
67

  
68
    public WindowInfo getWindowInfo() {
69
        if (windowInfo == null) {
70
            windowInfo =
71
                new WindowInfo(WindowInfo.MODELESSDIALOG
72
                    | WindowInfo.ICONIFIABLE | WindowInfo.RESIZABLE);
73
            Dimension dim = getPreferredSize();
74
            windowInfo.setWidth((int) dim.getWidth());
75
            windowInfo.setHeight((int) dim.getHeight());
76
            windowInfo.setTitle(Messages.getText("install_package"));
77
        }
78
        return windowInfo;
79
    }
80

  
81
    public Object getWindowProfile() {
82
        return WindowInfo.DIALOG_PROFILE;
83
    }
84

  
85
}
0 86

  
trunk/extensions/org.gvsig.installer.app.extension/src/main/java/org/gvsig/installer/app/extension/execution/InstallPackageExtension.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
/*
24
 * AUTHORS (In addition to CIT):
25
 * 2010 {Prodevelop}   {Task}
26
 */
27

  
28
package org.gvsig.installer.app.extension.execution;
29

  
30
import java.net.MalformedURLException;
31
import java.net.URL;
32

  
33
import org.gvsig.installer.app.extension.GvSIGFolders;
34
import org.gvsig.installer.app.extension.InitializeLibraries;
35
import org.gvsig.installer.swing.api.SwingInstallerLocator;
36
import org.slf4j.Logger;
37
import org.slf4j.LoggerFactory;
38

  
39
import com.iver.andami.PluginServices;
40
import com.iver.andami.plugins.Extension;
41
import com.iver.cit.gvsig.Version;
42

  
43
/**
44
 * @author <a href="mailto:jpiera@gvsig.org">Jorge Piera Llodr&aacute;</a>
45
 */
46
public class InstallPackageExtension extends Extension {
47

  
48
    private static final Logger LOG = LoggerFactory
49
        .getLogger(InstallPackageExtension.class);
50

  
51
    public void execute(String actionCommand) {
52
        GvSIGFolders folders = new GvSIGFolders();
53
        try {
54
            PluginServices.getMDIManager().addCentredWindow(
55
                new InstallPackageWindow(folders.getApplicationFolder(),
56
                    folders.getPluginsFolder(), folders.getInstallFolder()));
57
        } catch (Exception e) {
58
            LOG.error("Error creating the wizard to install a package ", e);
59
        }
60
    }
61

  
62
    public void initialize() {
63

  
64
        // TODO: move to user preferences or an external configuration file
65
        String packageDownloadURL =
66
            "http://gvsig-desktop.forge.osor.eu/gvSIG-desktop/dists/"+Version.format()+"/packages.gvspki";
67

  
68
        try {
69
        	
70
        	InitializeLibraries.initialize();
71
        	
72
        	SwingInstallerLocator.getSwingInstallerManager()
73
                .setDefaultDownloadURL(new URL(packageDownloadURL));
74
        } catch (MalformedURLException e) {
75
            LOG.error(
76
                "Error creating the default packages download URL pointing to"
77
                    + packageDownloadURL, e);
78
        }
79
    }
80

  
81
    public boolean isEnabled() {
82
        return true;
83
    }
84

  
85
    public boolean isVisible() {
86
        return true;
87
    }
88

  
89
}
0 90

  
trunk/extensions/org.gvsig.installer.app.extension/src/main/resources/config/config.xml
1
<?xml version="1.0" encoding="ISO-8859-1"?>
2
<plugin-config>
3
	<libraries library-dir="lib"/>
4
	<depends plugin-name="com.iver.cit.gvsig"/>
5
	<resourceBundle name="text"/>
6
	<extensions>
7
		<extension class-name="org.gvsig.installer.app.extension.creation.MakePluginPackageExtension"
8
			description="This extension is used to create a bundle for a plugin package from the current gvSIG application."
9
			active="false">
10
			<menu text="tools/Development/make_plugin_package"
11
				  tooltip="make_plugin_package_description"
12
				  action-command="" />			
13
		</extension>
14
			<extension class-name="org.gvsig.installer.app.extension.execution.InstallPackageExtension"
15
			description="This extension is used to install a package from a bundle in gvSIG"
16
			active="false">
17
			<menu text="tools/install_package"
18
				  tooltip="install_package_description"
19
				  action-command="" />			
20
		</extension>
21
	</extensions>
22
</plugin-config>
0 23

  
trunk/extensions/org.gvsig.installer.app.extension/src/main/resources/config/package.info
1

  
2
			state=devel
3
			name=org.gvsig.installer.backport
4
			official=true
5
			code=org.gvsig.installer.backport
6
			operating-system=all
7
			architecture=all
8
			java-version=j1_5
9
			gvSIG-version=1.11
10
			version=1.0.0
11
			type=plugin
12
			build=1
13
			description=
14
			model-version=1.0.0
15
		
trunk/extensions/org.gvsig.installer.app.extension/.settings/org.eclipse.jdt.core.prefs
1
#Wed Jan 26 12:19:55 CET 2011
2
eclipse.preferences.version=1
3
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
4
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
5
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
6
org.eclipse.jdt.core.compiler.compliance=1.6
7
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
8
org.eclipse.jdt.core.compiler.debug.localVariable=generate
9
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
10
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
11
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
12
org.eclipse.jdt.core.compiler.source=1.6
0 13

  
trunk/extensions/org.gvsig.installer.app.extension/build.xml
1
<project name="Generar extension en Andami" default="generate-without-source" basedir=".">
2
	    <description>
3
	        Instala el plugin de instalaciĆ³n de gvSIG en Andami.
4
	    </description>
5
	  <!-- set global properties for this build -->
6
	  <property name="src" location="src"/>
7
	  <property name="build" location="target/classes"/>
8
	  <property name="dist"  location="dist-temp"/>
9
	  <property name="plugin" value="org.gvsig.installer.backport"/>
10
	  <property name="extension-dir" location="../_fwAndami/gvSIG/extensiones"/>
11
	  <property name="andami-dir" location="../_fwAndami"/>
12
	  <property name="gvSIG_lib" value="${extension-dir}/com.iver.cit.gvsig/lib"/>
13
	  <property name="mydist"  location="dist"/>
14
	  <import file="../binaries/ant/utilities.xml"/>
15

  
16
	  <target name="init">
17
	    <!-- Create the time stamp -->
18
	    <tstamp/>
19
	    <!-- Create the build directory structure used by compile -->
20
	    <mkdir dir="${build}"/>
21
	    <mkdir dir="${dist}"/>
22
	    <mkdir dir="${dist}/lib"/>
23

  
24
	  </target>
25

  
26
		<target name="batch-build"
27
			description="compile the sources, create the jar file"
28
			depends="init,compile,create-jar,copy-data-files,move-to-andami">
29
		</target>
30

  
31
		<target name="compile" description="compile the source" >
32
			<antcall target="gvSIG-import-build-number"/>
33
			<!-- Compile the Java code from ${src} to ${build} -->
34
			<mkdir dir="${build}" />
35
			<loadEclipseClasspath project="${basedir}"/>
36
			<gvSIG-javac
37
				classpath="${eclipseClasspath}"
38
			/>
39
		</target>
40

  
41
		<target name="generate-without-source"
42
	  		description="generate the distribution without the source file"
43
		  	depends="init,create-jar,copy-data-files,move-to-andami">
44

  
45
		</target>
46

  
47
		<target name="create-jar"
48
			description="Creates the plugin jar">
49
			<jar jarfile="${dist}/lib/${plugin}.jar" basedir="${build}"/>
50
		</target>
51

  
52
		<target name="copy-data-files"
53
			depends="make-package-info">
54
		    <copy todir="${dist}">
55
		    	<fileset dir="./src/main/resources/config" includes="**/**"/>
56
		    	<fileset dir="./src/main/resources/locale" includes="**/**"/>
57
		    </copy>
58
		    <copy todir="${dist}/lib">
59
		    	<fileset dir="./lib" includes="**/**"/>
60
		    </copy>
61

  
62
		</target>
63

  
64

  
65
		<target name="move-to-andami">
66
			<move todir="${extension-dir}/${plugin}/">
67
				<fileset dir="${dist}" includes="**/**"/>
68
			</move>
69
		</target>
70

  
71
		<target name="clean">
72
			<delete dir="${dist}" failonerror="no"/>
73
			<delete dir="${build}" failonerror="no"/>
74
		</target>
75
	
76
	<target name="make-package-info">
77
		<echo file="src/main/resources/config/package.info">
78
			state=devel
79
			name=${plugin}
80
			official=true
81
			code=${plugin}
82
			operating-system=all
83
			architecture=all
84
			java-version=j1_5
85
			gvSIG-version=1.11
86
			version=1.0.0
87
			type=plugin
88
			build=1
89
			description=
90
			model-version=1.0.0
91
		</echo>
92
	</target>
93
	</project>
0 94

  
trunk/extensions/org.gvsig.installer.app.extension/.classpath
1
<?xml version="1.0" encoding="UTF-8"?>
2
<classpath>
3
	<classpathentry kind="src" path="src/main/java"/>
4
	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
5
	<classpathentry combineaccessrules="false" kind="src" path="/appgvSIG"/>
6
	<classpathentry kind="lib" path="lib/org.gvsig.installer.lib.api-1.0.0-SNAPSHOT.jar"/>
7
	<classpathentry kind="lib" path="lib/org.gvsig.installer.lib.impl-1.0.0-SNAPSHOT.jar"/>
8
	<classpathentry kind="lib" path="lib/org.gvsig.installer.lib.spi-1.0.0-SNAPSHOT.jar"/>
9
	<classpathentry kind="lib" path="lib/org.gvsig.installer.prov.plugin-1.0.0-SNAPSHOT.jar"/>
10
	<classpathentry kind="lib" path="lib/org.gvsig.installer.swing.api-1.0.0-SNAPSHOT.jar"/>
11
	<classpathentry kind="lib" path="lib/org.gvsig.installer.swing.impl-1.0.0-SNAPSHOT.jar"/>
12
	<classpathentry kind="lib" path="lib/org.gvsig.tools.lib-2.1.0-SNAPSHOT.jar"/>
13
	<classpathentry kind="lib" path="lib/slf4j-api-1.5.5.jar"/>
14
	<classpathentry kind="lib" path="lib/slf4j-log4j12-1.5.5.jar"/>
15
	<classpathentry kind="lib" path="/_fwAndami/lib/gvsig-i18n.jar" sourcepath="/libInternationalization/src"/>
16
	<classpathentry combineaccessrules="false" kind="src" path="/_fwAndami"/>
17
	<classpathentry kind="output" path="target/classes"/>
18
</classpath>
0 19

  

Also available in: Unified diff