commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject cvs commit: jakarta-commons-sandbox/jelly maven.xml project.properties
Date Fri, 19 Jul 2002 22:07:35 GMT
smor        2002/07/19 15:07:34

  Modified:    jelly    maven.xml project.properties
  Log:
  Added a "dist:install" goal to install Jelly on the user's system.
  This creates a ${maven.dist.install.dir} dir, and copies all the files
  needed by Jelly to run (which are generated in "dist:build"'s preGoal.
  
  Though, I can't generate the JELLY_HOME and the PATH, so I added a
  big warning telling the user that he needs to set those variables.
  
  Note : I defaulted the ${maven.dist.install.dir} to /usr/local/jelly,
  which is a Linux path. I should add a system detection, so that
  both worlds are happy :)
  
  Revision  Changes    Path
  1.13      +43 -0     jakarta-commons-sandbox/jelly/maven.xml
  
  Index: maven.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/jelly/maven.xml,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- maven.xml	17 Jul 2002 17:38:25 -0000	1.12
  +++ maven.xml	19 Jul 2002 22:07:34 -0000	1.13
  @@ -101,7 +101,50 @@
               file="${maven.build.dir}/${maven.final.name}.jar"/>
     </preGoal>
   
  +  <!-- ===================================================================== -->
  +  <!--                      D I S T : I N S T A L L                          -->
  +  <!-- ===================================================================== -->
  +  <!-- This installs Jelly on your system. With an installed Jelly, you'll   -->
  +  <!-- be able to run Jelly scripts from wherever your are, using :          -->
  +  <!-- "jelly <script> <outputfile>".                                  
     -->
  +  <!-- The installation dir is set in the project.properties file, under the -->
  +  <!-- name "maven.dist.install.dir", which defaults to "/usr/local/jelly"   -->
  +  <!-- (yep, that's a Linux path :). Please override it to suit your needs   -->
  +  <!-- ===================================================================== -->
   
  +  <goal name="dist:install"
  +            description="Installs Jelly on your system."
  +            prereqs="dist:build">
  +
  +    <echo>
  +      +-------------------------------------------------------+
  +      | I N S T A L L I N G   J E L L Y                       |
  +      +-------------------------------------------------------+
  +    </echo>
  +    <mkdir dir="${maven.dist.install.dir}"/>
  +
  +    <copy todir="${maven.dist.install.dir}">
  +      <fileset dir="${maven.dist.assembly.dir}"/>
  +    </copy>
  +
  +    <chmod file="${maven.dist.install.dir}/bin/jelly" perm="ugo+rx" />
  +
  +    <echo>
  +      * ===================================================== *
  +      *                    W A R N I N G                      *
  +      * ===================================================== *
  +      * Jelly is now almost installed on your system !        *
  +      * Next, you must set JELLY_HOME to point to             *
  +      * "maven.dist.install.dir", and add JELLY_HOME/bin      *
  +      * to your PATH.                                         *
  +      *                                                       *
  +      * Then, you will be able to run Jelly scripts using the *
  +      * command : "jelly script outputfile".                  *
  +      *                                                       *
  +      * Enjoy !                                               *
  +      * ===================================================== *
  +    </echo>
  +  </goal>
   
     <!-- demo programs -->
   
  
  
  
  1.9       +2 -0      jakarta-commons-sandbox/jelly/project.properties
  
  Index: project.properties
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/jelly/project.properties,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- project.properties	13 Jun 2002 21:31:13 -0000	1.8
  +++ project.properties	19 Jul 2002 22:07:34 -0000	1.9
  @@ -9,6 +9,8 @@
   maven.jarResources.basedir=${basedir}/src/java
   maven.junit.usefile = false
    
  +# Installation dir
  +maven.dist.install.dir = /usr/local/jelly
   
   # use Sun coding standards
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message