Revision 40531

View differences:

trunk/org.gvsig.desktop/org.gvsig.desktop.installer/pom.xml
1 1
<?xml version="1.0" encoding="UTF-8"?>
2 2
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0          http://maven.apache.org/xsd/maven-4.0.0.xsd">
3 3

  
4
    <modelVersion>4.0.0</modelVersion>
5
    <artifactId>org.gvsig.desktop.installer</artifactId>
6
    <packaging>pom</packaging>
7
    <name>${project.artifactId}</name>
8
    <parent>
9
        <groupId>org.gvsig</groupId>
10
        <artifactId>org.gvsig.desktop</artifactId>
11
        <version>2.0.10-SNAPSHOT</version>
12
    </parent>
4
	<modelVersion>4.0.0</modelVersion>
5
	<groupId>org.gvsig</groupId>
6
	<artifactId>org.gvsig.desktop.installer</artifactId>
7
	<version>1.0.0</version>
8
	<packaging>pom</packaging>
9
	<name>${project.artifactId}</name>
13 10

  
14 11
  <build>
12
  
13
     <pluginManagement>
14
        <plugins>
15
        
16
          <plugin>
17
            <groupId>org.codehaus.gmaven</groupId>
18
            <artifactId>gmaven-plugin</artifactId>
19
            <version>1.4</version>
20
          </plugin>
21
          
22
          <plugin>
23
            <groupId>org.codehaus.mojo</groupId>
24
            <artifactId>properties-maven-plugin</artifactId>
25
            <version>1.0-alpha-2</version>
26
          </plugin>
27
                            
28
        </plugins>
29
     </pluginManagement>
30
  
15 31
      <plugins>
16 32
          <plugin>
17 33
              <groupId>org.codehaus.mojo</groupId>
......
28 44
		                      <file>${user.home}/.gvsig-devel.properties</file>
29 45
		                      <file>${project.basedir}/gvsig-devel.properties</file>
30 46
                          </files>
47
                          <quiet>true</quiet>
31 48
                      </configuration>
32 49
                  </execution>
33 50
              </executions>
......
48 65
                    <source><![CDATA[
49 66
					  log.info("For create windows launchers launch4j is requiered in the PATH. In linux link launch4j to launch4jc.")
50 67
					  log.info("For create installer InstallJammer is required in the PATH.")
51
					  
68

  
69
                      new File(project.basedir,"target").mkdirs()
70
                      
52 71
                      gvsig_product_folder_path = project.properties["gvsig.product.folder.path"]
72
					  org_gvsig_andami_updater_jar = new FileNameFinder().getFileNames(gvsig_product_folder_path+"/lib",'org.gvsig.andami.updater-*.jar')[0]
73
					  org_gvsig_andami_updater_jar = new File(org_gvsig_andami_updater_jar).getName()
74
                      
53 75
                      File file = new File(gvsig_product_folder_path + "/gvSIG/extensiones/org.gvsig.app.mainplugin/package.info")
54 76
                      log.info("Loading package.info - " + file.getAbsolutePath())
55 77
                      pakageinfo = new Properties()
......
59 81
					  target = project.basedir.getAbsolutePath()+"/target/gvsig-desktop.xml"
60 82
					  s = new File(source).text
61 83
					  s = s.replaceAll("@@gvsig.product.folder.path@@", gvsig_product_folder_path)
62
					  s = s.replaceAll("@@org.gvsig.andami.updater.jar@@", project.properties["org.gvsig.andami.updater.jar"])
84
					  s = s.replaceAll("@@org.gvsig.andami.updater.jar@@", org_gvsig_andami_updater_jar)
63 85
					  s = s.replaceAll("@@version@@", pakageinfo.getProperty("version")+"."+pakageinfo.getProperty("buildNumber"))
64 86
                      new File(target).write(s)
65 87
					  log.info("Created "+target)
66 88
					  p = ("launch4jc "+ target).execute()
67 89
					  p.waitFor()
68
					  log.info("Creating windows launcher...\n" + p.text)
90
					  log.info("Creating gvsig-desktop.exe windows launcher...\n" + p.text)
69 91

  
70 92
					  source = project.basedir.getAbsolutePath()+"/src/main/launch4j/gvsig-desktop-devel.xml"
71 93
					  target = project.basedir.getAbsolutePath()+"/target/gvsig-desktop-devel.xml"
72 94
					  s = new File(source).text
73 95
					  s = s.replaceAll("@@gvsig.product.folder.path@@", gvsig_product_folder_path)
74
					  s = s.replaceAll("@@org.gvsig.andami.updater.jar@@", project.properties["org.gvsig.andami.updater.jar"])
96
					  s = s.replaceAll("@@org.gvsig.andami.updater.jar@@", org_gvsig_andami_updater_jar)
75 97
					  s = s.replaceAll("@@version@@", pakageinfo.getProperty("version")+"."+pakageinfo.getProperty("buildNumber"))
76 98
                      new File(target).write(s)
77 99
					  log.info("Created "+target)
78 100
					  p = ("launch4jc "+ target).execute()
79 101
					  p.waitFor()
80
					  log.info("Creating windows launcher...\n" + p.text)
102
					  log.info("Creating gvsig-desktop-devel.exe windows launcher...\n" + p.text)
81 103

  
82 104
					  source = project.basedir.getAbsolutePath()+"/src/main/launch4j/gvsig-package-installer.xml"
83 105
					  target = project.basedir.getAbsolutePath()+"/target/gvsig-package-installer.xml"
84 106
					  s = new File(source).text
85 107
					  s = s.replaceAll("@@gvsig.product.folder.path@@", gvsig_product_folder_path)
86
					  s = s.replaceAll("@@org.gvsig.andami.updater.jar@@", project.properties["org.gvsig.andami.updater.jar"])
108
					  s = s.replaceAll("@@org.gvsig.andami.updater.jar@@", org_gvsig_andami_updater_jar)
87 109
					  s = s.replaceAll("@@version@@", pakageinfo.getProperty("version")+"."+pakageinfo.getProperty("buildNumber"))
88 110
                      new File(target).write(s)
89 111
					  log.info("Created "+target)
90 112
					  p = ("launch4jc "+ target).execute()
91 113
					  p.waitFor()
92
					  log.info("Creating windows launcher...\n" + p.text)
114
					  log.info("Creating gvsig-package-installer.exe windows launcher...\n" + p.text)
93 115
					                        
94 116
                      /*
95 117
                      

Also available in: Unified diff