You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by jv...@apache.org on 2003/01/06 04:39:22 UTC
cvs commit: jakarta-turbine-maven/src/plugins-build/sea plugin.jelly sea-header
jvanzyl 2003/01/05 19:39:22
Modified: src/plugins-build/sea plugin.jelly sea-header
Log:
o Filter the ${pom.name} and ${pom.currentVersion} into the sea so when
it extracts we have something like the following:
Press any key to continue...[jvanzyl@mumu]$ ./test-sea.sh
Touchstone v1.0 - starting installation... please wait
Having self extracting archives will allow users, at least *nix ones,
to do something like this for their projects and maven itself:
lynx:http://www.ibiblio.org/maven/distributions/maven-1.0.sh | sh
I'll make it a bit more configurable so you can push in a little
jellySwing/SWT thingy to help people install. First cut.
Revision Changes Path
1.2 +13 -2 jakarta-turbine-maven/src/plugins-build/sea/plugin.jelly
Index: plugin.jelly
===================================================================
RCS file: /home/cvs/jakarta-turbine-maven/src/plugins-build/sea/plugin.jelly,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- plugin.jelly 6 Jan 2003 03:27:21 -0000 1.1
+++ plugin.jelly 6 Jan 2003 03:39:22 -0000 1.2
@@ -49,14 +49,24 @@
zipfile="${maven.build.dir}/${seaName}.tar.gz"
src="${maven.build.dir}/${seaName}.tar"
/>
-
+
+ <filter token="NAME" value="${pom.name}"/>
+ <filter token="CURRENT_VERSION" value="${pom.currentVersion}"/>
+
+ <copy
+ file="${pom.getPluginContext('maven-sea-plugin').getVariable('plugin.dir')}/sea-header"
+ tofile="${maven.build.dir}/project-sea-header"
+ overwrite="true"
+ filtering="true"
+ />
+
<!--
|
| Concatenate the sea-header with the tarball we just made.
|
-->
<maven:concat outputFile="${maven.build.dir}/${seaName}.sh">
- <maven:input file="${pom.getPluginContext('maven-sea-plugin').getVariable('plugin.dir')}/sea-header"/>
+ <maven:input file="${maven.build.dir}/project-sea-header"/>
<maven:input file="${maven.build.dir}/${seaName}.tar.gz"/>
</maven:concat>
@@ -75,6 +85,7 @@
-->
<delete file="${maven.build.dir}/${seaName}.tar"/>
<delete file="${maven.build.dir}/${seaName}.tar.gz"/>
+ <delete file="${maven.build.dir}/project-sea-header"/>
</define:tag>
</define:taglib>
1.2 +1 -1 jakarta-turbine-maven/src/plugins-build/sea/sea-header
Index: sea-header
===================================================================
RCS file: /home/cvs/jakarta-turbine-maven/src/plugins-build/sea/sea-header,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sea-header 6 Jan 2003 03:27:21 -0000 1.1
+++ sea-header 6 Jan 2003 03:39:22 -0000 1.2
@@ -1,6 +1,6 @@
#!/bin/sh
echo ""
-echo "@NAME@ v@CURRENT_VERSION - starting installation... please wait"
+echo "@NAME@ v@CURRENT_VERSION@ - starting installation... please wait"
echo ""
# create a temp directory to extract to.