Revision 40586 trunk/org.gvsig.desktop/pom.xml
pom.xml | ||
---|---|---|
2078 | 2078 |
</goals> |
2079 | 2079 |
<configuration> |
2080 | 2080 |
<source><![CDATA[ |
2081 |
if( project.artifactId != "org.gvsig.desktop" ) { |
|
2082 |
log.warn("Skip initialization of gvsig-devel.properties.") |
|
2083 |
} else { |
|
2081 | 2084 |
home = System.getenv('HOME') |
2082 | 2085 |
if( home == null ) { |
2083 | 2086 |
home = System.properties['user.home'] |
... | ... | |
2100 | 2103 |
props.store(propsFile.newWriter(), null) |
2101 | 2104 |
} |
2102 | 2105 |
log.info("Current gvsig.product.folder.path = " + gvsigProductFolderPath) |
2106 |
} |
|
2103 | 2107 |
]]></source> |
2104 | 2108 |
</configuration> |
2105 | 2109 |
</execution> |
2106 |
|
|
2107 |
<execution> |
|
2108 |
<id>gvsig-root-install</id> |
|
2109 |
<phase>install</phase> |
|
2110 |
<configuration> |
|
2111 |
<source><![CDATA[ |
|
2112 |
if( project.artifactId != "org.gvsig.desktop" ) { |
|
2113 |
throw new Exception(); |
|
2114 |
} |
|
2115 |
ant = new AntBuilder() |
|
2116 |
source = project.basedir.getAbsolutePath() + "/target/" + project.artifactId + "-" + project.version + "-root-folder.zip"; |
|
2117 |
target = project.properties["gvsig.product.folder.path"] |
|
2118 |
|
|
2119 |
log.info("Install gvSIG-desktop root folder in " + target) |
|
2120 |
ant.unzip(src: source, dest: target) |
|
2121 |
]]></source> |
|
2122 |
</configuration> |
|
2123 |
</execution> |
|
2124 |
|
|
2125 | 2110 |
</executions> |
2126 |
</plugin>
|
|
2111 |
</plugin> |
|
2127 | 2112 |
|
2128 |
<plugin> |
|
2129 |
<!-- Package the roor folder of gvSIG desktop --> |
|
2130 |
<artifactId>maven-assembly-plugin</artifactId> |
|
2131 |
<configuration> |
|
2132 |
<ignoreDirFormatExtensions>true</ignoreDirFormatExtensions> |
|
2133 |
<appendAssemblyId>false</appendAssemblyId> |
|
2134 |
</configuration> |
|
2135 |
<executions> |
|
2136 |
<execution> |
|
2137 |
<id>gvsig-root-package</id> |
|
2138 |
<phase>package</phase> |
|
2139 |
<goals> |
|
2140 |
<goal>single</goal> |
|
2141 |
</goals> |
|
2142 |
<configuration> |
|
2143 |
<finalName>${project.artifactId}-${project.version}-root-folder</finalName> |
|
2144 |
<descriptors> |
|
2145 |
<descriptorId>src/main/assembly/gvsig-root-folder-package.xml</descriptorId> |
|
2146 |
</descriptors> |
|
2147 |
</configuration> |
|
2148 |
</execution> |
|
2149 |
</executions> |
|
2150 |
</plugin> |
|
2151 |
|
|
2152 | 2113 |
</plugins> |
2153 | 2114 |
</build> |
2154 | 2115 |
</profile> |
Also available in: Unified diff