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/03/11 18:32:05 UTC

cvs commit: jakarta-turbine-maven/src/plugins-build/plexus/src/plugin-resources/templates plexus.vm

jvanzyl     2003/03/11 09:32:05

  Modified:    src/plugins-build/plexus plugin.jelly plugin.properties
               src/plugins-build/plexus/src/plugin-resources/templates
                        plexus.vm
  Log:
  o If inclusion of the JRE is specified then make sure the generated
    script uses the included JRE as JAVA_HOME.
  
  Revision  Changes    Path
  1.10      +11 -11    jakarta-turbine-maven/src/plugins-build/plexus/plugin.jelly
  
  Index: plugin.jelly
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-maven/src/plugins-build/plexus/plugin.jelly,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- plugin.jelly	11 Mar 2003 16:42:23 -0000	1.9
  +++ plugin.jelly	11 Mar 2003 17:32:04 -0000	1.10
  @@ -259,17 +259,17 @@
     <goal 
       name="startup-shell-script" 
       description="Generate starter script">
  -    
  -    <copy 
  -      file="${maven.plexus.templatePath}/plexus.vm"
  -      tofile="${maven.plexus.bin}/plexus.sh"
  -    />
  -    
  -    <copy 
  -      file="${maven.plexus.templatePath}/plexus-bat.vm"
  -      tofile="${maven.plexus.bin}/plexus.bat"
  -    />
  -       
  +
  +    <velocity:merge
  +      name="${maven.plexus.bin}/plexus.sh"
  +      basedir="${maven.plexus.templatePath}"
  +      template="plexus.vm"/>
  +
  +    <velocity:merge
  +      name="${maven.plexus.bin}/plexus.bat"
  +      basedir="${maven.plexus.templatePath}"
  +      template="plexus-bat.vm"/>
  +
       <chmod file="${maven.plexus.bin}/plexus.sh" perm="+x"/>
       
     </goal>
  
  
  
  1.3       +1 -0      jakarta-turbine-maven/src/plugins-build/plexus/plugin.properties
  
  Index: plugin.properties
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-maven/src/plugins-build/plexus/plugin.properties,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- plugin.properties	28 Jan 2003 05:06:47 -0000	1.2
  +++ plugin.properties	11 Mar 2003 17:32:04 -0000	1.3
  @@ -15,6 +15,7 @@
   maven.plexus.appLib = ${maven.plexus.runtimeDirectory}/app-lib
   maven.plexus.components = ${maven.plexus.runtimeDirectory}/components
   maven.plexus.work = ${maven.plexus.runtimeDirectory}/work
  +maven.plexus.jre = ${maven.plexus.runtimeDirectory}/jre
   
   maven.plexus.componentBuilds = ${basedir}/component-builds
   maven.plexus.templatePath = ${plugin.dir}/plugin-resources/templates
  
  
  
  1.3       +16 -10    jakarta-turbine-maven/src/plugins-build/plexus/src/plugin-resources/templates/plexus.vm
  
  Index: plexus.vm
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-maven/src/plugins-build/plexus/src/plugin-resources/templates/plexus.vm,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- plexus.vm	4 Mar 2003 22:19:35 -0000	1.2
  +++ plexus.vm	11 Mar 2003 17:32:05 -0000	1.3
  @@ -12,16 +12,6 @@
   Darwin*) darwin=true ;;
   esac
   
  -# Checking for JAVA_HOME is required on *nix due
  -# to some distributions stupidly including kaffe in /usr/bin
  -if [ "$JAVA_HOME" = "" ] ; then
  -  echo "ERROR: JAVA_HOME not found in your environment."
  -  echo
  -  echo "Please, set the JAVA_HOME variable in your environment to match the"
  -  echo "location of the Java Virtual Machine you want to use."
  -  exit 1
  -fi
  -
   # resolve links - $0 may be a softlink
   THIS_PROG="$0"
   
  @@ -40,6 +30,22 @@
   PLEXUS_HOME=`cd "$PRGDIR/.." ; pwd`
   PLEXUS_CONF=`cd "$PLEXUS_HOME/conf" ; pwd`
   unset THIS_PROG
  +
  +#if ( $jre )
  +
  +JAVA_HOME=${PLEXUS_HOME}/jre
  +
  +#end
  +
  +# Checking for JAVA_HOME is required on *nix due
  +# to some distributions stupidly including kaffe in /usr/bin
  +if [ "$JAVA_HOME" = "" ] ; then
  +  echo "ERROR: JAVA_HOME not found in your environment."
  +  echo
  +  echo "Please, set the JAVA_HOME variable in your environment to match the"
  +  echo "location of the Java Virtual Machine you want to use."
  +  exit 1
  +fi
   
   # For Cygwin, ensure paths are in UNIX format before anything is touched
   if $cygwin ; then