You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by jl...@apache.org on 2006/03/15 23:59:57 UTC
svn commit: r386203 - in /geronimo/trunk/modules/installer-support: pom.xml
setup.xml
Author: jlaskowski
Date: Wed Mar 15 14:59:55 2006
New Revision: 386203
URL: http://svn.apache.org/viewcvs?rev=386203&view=rev
Log:
GERONIMO-1729 Module migration to Maven 2: installer-support
Added:
geronimo/trunk/modules/installer-support/pom.xml (with props)
geronimo/trunk/modules/installer-support/setup.xml (with props)
Added: geronimo/trunk/modules/installer-support/pom.xml
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/installer-support/pom.xml?rev=386203&view=auto
==============================================================================
--- geronimo/trunk/modules/installer-support/pom.xml (added)
+++ geronimo/trunk/modules/installer-support/pom.xml Wed Mar 15 14:59:55 2006
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+
+ Copyright 2006 The Apache Software Foundation
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<!-- $Rev$ $Date$ -->
+
+<project>
+ <parent>
+ <groupId>org.apache.geronimo</groupId>
+ <artifactId>geronimo</artifactId>
+ <version>1.2-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>geronimo-installer-support</artifactId>
+ <name>Geronimo :: Installer :: Support</name>
+ <version>${geronimoVersion}</version>
+
+ <properties>
+ <izpack_version>3.8.0</izpack_version>
+ </properties>
+
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>process-classes</phase>
+ <configuration>
+ <tasks>
+ <ant antfile="setup.xml">
+ <property name="izpack_version" value="${izpack_version}" />
+ <property name="maven.src.dir" value="${basedir}/src" />
+ <property name="maven.build.dir" value="${project.build.directory}" />
+ <property name="maven.repo.local" value="${settings.localRepository}" />
+ </ant>
+ </tasks>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+ <dependencies>
+ <dependency>
+ <groupId>izpack</groupId>
+ <artifactId>installer</artifactId>
+ <version>${izpack_version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>izpack</groupId>
+ <artifactId>standalone-compiler</artifactId>
+ <version>${izpack_version}</version>
+ </dependency>
+ </dependencies>
+</project>
Propchange: geronimo/trunk/modules/installer-support/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/trunk/modules/installer-support/pom.xml
------------------------------------------------------------------------------
svn:executable = *
Propchange: geronimo/trunk/modules/installer-support/pom.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: geronimo/trunk/modules/installer-support/pom.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: geronimo/trunk/modules/installer-support/setup.xml
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/installer-support/setup.xml?rev=386203&view=auto
==============================================================================
--- geronimo/trunk/modules/installer-support/setup.xml (added)
+++ geronimo/trunk/modules/installer-support/setup.xml Wed Mar 15 14:59:55 2006
@@ -0,0 +1,105 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+
+ Copyright 2006 The Apache Software Foundation
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<!-- $Rev$ $Date$ -->
+
+<project name="setup" default="default" basedir=".">
+
+ <target name="default">
+ <!-- we build the extension to a std geronimo jar name,
+ but it must be inserted into the compiler jar with
+ the panel name as ref'd in geronimo-izpack.xml
+ "ValidatePackSelections.jar"
+ -->
+ <mkdir dir="${maven.build.dir}/tmp/bin/panels" />
+ <jar destfile="${maven.build.dir}/tmp/bin/panels/ValidatePackSelections.jar"
+ basedir="${maven.build.dir}/classes"
+ />
+ <!-- copy the standalone-compiler-IZPACKVER to a new name
+ so it will be ready to receive the ValidatePackSelections.jar
+ -->
+ <copy file="${maven.repo.local}/izpack/standalone-compiler/${izpack_version}/standalone-compiler-${izpack_version}.jar" tofile="${maven.build.dir}/standalone-compiler-custom-${izpack_version}.jar" />
+ <!-- overwrite the icons in the jar with Apache License compliant
+ versions. These icons are modified versions of the
+ icons shipped with the Apache HTTP server
+ The icons in /img are actually not used, but we write
+ over them anyway
+ -->
+ <jar destfile="${maven.build.dir}/standalone-compiler-custom-${izpack_version}.jar"
+ basedir="${maven.src.dir}/images"
+ includes="**/*"
+ update="true" >
+ </jar>
+ <!-- Continuing the icon licensing saga. extract lib/installer.jar
+ from standalone compiler. Overwrite the icons in that jar too.
+ These are the ones actually used in the installer.
+ Then, put the installer.jar back into the standalone compiler.
+
+ Do the same for uninstaller.jar too.
+
+ -->
+ <unjar
+ src="${maven.build.dir}/standalone-compiler-custom-${izpack_version}.jar"
+ dest="${maven.build.dir}/tmp" >
+ <patternset>
+ <include name="**/installer.jar"/>
+ <include name="**/uninstaller.jar"/>
+ </patternset>
+ </unjar>
+ <!-- overwrite the icons in the installer.jar
+ with Apache License compliant
+ versions. These icons are modified versions of the
+ icons shipped with the Apache HTTP server
+ The icons in /img are actually not used
+ -->
+ <jar destfile="${maven.build.dir}/tmp/lib/installer.jar"
+ basedir="${maven.src.dir}/images"
+ includes="**/*"
+ update="true" >
+ </jar>
+ <!-- overwrite the icons in the uninstaller.jar
+ with Apache License compliant
+ versions. These icons are modified versions of the
+ icons shipped with the Apache HTTP server
+ The icons in /img are actually not used
+ -->
+ <jar destfile="${maven.build.dir}/tmp/lib/uninstaller.jar"
+ basedir="${maven.src.dir}/images"
+ includes="**/*"
+ update="true" >
+ </jar>
+ <!-- slip the jars into
+ the standalone-compiler jar
+ don't forget "update" or it's screwed
+ -->
+ <jar destfile="${maven.build.dir}/standalone-compiler-custom-${izpack_version}.jar"
+ basedir="${maven.build.dir}/tmp"
+ includes="**/*.jar"
+ update="true" >
+ </jar>
+ <!--
+ Ok, we've got a new izpack compiler jar. Copy it to
+ the local repository as a geronimo artifact.
+ -->
+ <echo>Built Geronimo custom IzPack installer jar</echo>
+ <echo>Copying standalone-compiler-custom-${izpack_version} to local repo</echo>
+ <copy file="${maven.build.dir}/standalone-compiler-custom-${izpack_version}.jar"
+ tofile="${maven.repo.local}/geronimo/standalone-compiler-custom/${izpack_version}/standalone-compiler-customr-${izpack_version}.jar"
+ />
+ </target>
+</project>
Propchange: geronimo/trunk/modules/installer-support/setup.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/trunk/modules/installer-support/setup.xml
------------------------------------------------------------------------------
svn:executable = *
Propchange: geronimo/trunk/modules/installer-support/setup.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: geronimo/trunk/modules/installer-support/setup.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml