You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by js...@apache.org on 2003/08/11 19:20:59 UTC

cvs commit: incubator-geronimo maven.xml

jstrachan    2003/08/11 10:20:59

  Modified:    .        maven.xml
  Log:
  added a little 'run' goal so that the Geronimo server can be ran from inside Maven via...

  maven run
  
  Revision  Changes    Path
  1.2       +28 -10    incubator-geronimo/maven.xml
  
  Index: maven.xml
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/maven.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- maven.xml	10 Aug 2003 20:09:40 -0000	1.1
  +++ maven.xml	11 Aug 2003 17:20:59 -0000	1.2
  @@ -1,10 +1,28 @@
  -<project default="jar:install" 
  -         xmlns:j="jelly:core" 
  -         xmlns:ant="jelly:ant" 
  -         xmlns:maven="jelly:maven">
  -
  -  <preGoal name="xdoc:jelly-transform">
  -    <attainGoal name="html2xdoc"/>
  -    <attainGoal name="faq"/>
  -  </preGoal>
  -</project>
  +<project default="jar:install" 
  +         xmlns:j="jelly:core" 
  +         xmlns:ant="jelly:ant" 
  +         xmlns:maven="jelly:maven">
  +
  +  <preGoal name="xdoc:jelly-transform">
  +    <attainGoal name="html2xdoc"/>
  +    <attainGoal name="faq"/>
  +  </preGoal>
  +  
  +  <goal name="run" prereqs="set.classpath"
  +    description="Runs the Geronimo Server using the current build">
  +    <java classname="org.apache.geronimo.Main" fork="yes">
  +      <classpath refid="test.classpath"/>
  +    </java>
  +  </goal>
  +
  +  <goal name="set.classpath" prereqs="java:compile, test:compile"
  +    description="Sets up the classpath for running things">
  +    <path id="test.classpath">
  +      <pathelement path="target/test-classes"/>
  +      <pathelement path="${maven.build.dest}"/>
  +	  <path refid="maven.dependency.classpath"/>
  +	</path>
  +  </goal>
  +  
  +  
  +</project>