You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by vm...@apache.org on 2003/04/09 13:54:56 UTC

cvs commit: maven/src/plugins-build/jboss plugin.jelly plugin.properties

vmassol     2003/04/09 04:54:56

  Modified:    src/plugins-build/jboss/xdocs changes.xml
               src/plugins-build/jboss plugin.jelly plugin.properties
  Log:
  - Added new <code>maven.jboss.hostname</code> plugin property. It defaults to <code>localhost</code> and gives the host name of the server to stop when calling <code>maven jboss:stop</code>.
  - JBoss failed to start on unix. This has been fixed.
  
  Revision  Changes    Path
  1.3       +11 -0     maven/src/plugins-build/jboss/xdocs/changes.xml
  
  Index: changes.xml
  ===================================================================
  RCS file: /home/cvs/maven/src/plugins-build/jboss/xdocs/changes.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- changes.xml	8 Apr 2003 22:16:03 -0000	1.2
  +++ changes.xml	9 Apr 2003 11:54:54 -0000	1.3
  @@ -7,6 +7,17 @@
   
     <body>
   
  +    <release version="1.1" date="in CVS">
  +      <action dev="vmassol" type="add" due-to="James Ward" due-to-email="james@ectropic.com">
  +        Added new <code>maven.jboss.hostname</code> plugin property.
  +        It defaults to <code>localhost</code> and gives the host name
  +        of the server to stop when calling <code>maven jboss:stop</code>.
  +      </action>
  +      <action dev="vmassol" type="fix" due-to="James Ward" due-to-email="james@ectropic.com">
  +        JBoss failed to start on unix. This has been fixed.
  +      </action>
  +    </release>
  +    
       <release version="1.0" date="2003-04-08">
         <action dev="vmassol" type="add">
           Plugin creation.
  
  
  
  1.2       +8 -3      maven/src/plugins-build/jboss/plugin.jelly
  
  Index: plugin.jelly
  ===================================================================
  RCS file: /home/cvs/maven/src/plugins-build/jboss/plugin.jelly,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- plugin.jelly	8 Apr 2003 14:39:52 -0000	1.1
  +++ plugin.jelly	9 Apr 2003 11:54:56 -0000	1.2
  @@ -125,13 +125,18 @@
     <goal name="jboss:start" prereqs="jboss:init"
       description="Starts JBoss with our specific server configuration">
   
  +    <!-- Construct a URL valid on any OS -->
  +    <j:new var="jbossfile" className="java.io.File">
  +      <j:arg value="${maven.jboss.build.dir}/${maven.jboss.conf.name}"/>
  +    </j:new>
  +    <j:set var="jbossurl" value="${jbossfile.toURL()}"/>
  +
       <java classname="org.jboss.Main" fork="yes" dir="${maven.jboss.home}/bin">
   
         <sysproperty key="program.name" file="${maven.jboss.home}/bin/run.bat"/>
         <sysproperty key="jboss.server.home.dir" 
           file="${maven.jboss.build.dir}/${maven.jboss.conf.name}"/>
  -      <sysproperty key="jboss.server.home.url"
  -        value="file:/${maven.jboss.build.dir}/${maven.jboss.conf.name}"/>
  +      <sysproperty key="jboss.server.home.url" value="${jbossurl}"/>
   
         <arg line="-c ${maven.jboss.conf.name}"/>
   
  @@ -153,7 +158,7 @@
       description="Stops JBoss">
   
       <java classname="org.jboss.Shutdown" fork="yes">
  -      <arg value="localhost"/>
  +      <arg value="${maven.jboss.hostname}"/>
   
         <classpath>
           <pathelement location="${maven.jboss.home}/bin/shutdown.jar"/>
  
  
  
  1.2       +3 -0      maven/src/plugins-build/jboss/plugin.properties
  
  Index: plugin.properties
  ===================================================================
  RCS file: /home/cvs/maven/src/plugins-build/jboss/plugin.properties,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- plugin.properties	8 Apr 2003 14:39:52 -0000	1.1
  +++ plugin.properties	9 Apr 2003 11:54:56 -0000	1.2
  @@ -44,3 +44,6 @@
   maven.jboss.default.deploy.includes = **/*
   maven.jboss.default.deploy.excludes =
   
  +# Host name of the server where JBoss is running.
  +# Note: This is used to shut JBoss down.
  +maven.jboss.hostname = localhost
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


RE: cvs commit: maven/src/plugins-build/jboss plugin.jelly plugin.properties

Posted by Vincent Massol <vm...@pivolis.com>.
Thanks dIon!
-Vincent

> -----Original Message-----
> From: dion@multitask.com.au [mailto:dion@multitask.com.au]
> Sent: 09 April 2003 16:55
> To: Maven Developers List
> Subject: Re: cvs commit: maven/src/plugins-build/jboss plugin.jelly
> plugin.properties
> 
> >   +    <j:new var="jbossfile" className="java.io.File">
> >   +      <j:arg
> value="${maven.jboss.build.dir}/${maven.jboss.conf.name}"/>
> >   +    </j:new>
> You know there's an easier way to do this with the jelly util:file
tag.
> 
> See
http://jakarta.apache.org/commons/jelly/libs/util/tags.html#util:file
> --
> dIon Gillard, Multitask Consulting
> Blog:      http://www.freeroller.net/page/dion/Weblog
> Work:      http://www.multitask.com.au
> 
> 
> vmassol@apache.org wrote on 09/04/2003 09:54:56 PM:
> 
> > vmassol     2003/04/09 04:54:56
> >
> >   Modified:    src/plugins-build/jboss/xdocs changes.xml
> >                src/plugins-build/jboss plugin.jelly
plugin.properties
> >   Log:
> >   - Added new <code>maven.jboss.hostname</code> plugin property. It
> > defaults to <code>localhost</code> and gives the host name of the
> > server to stop when calling <code>maven jboss:stop</code>.
> >
> >   - JBoss failed to start on unix. This has been fixed.
> >
> >
> >   Revision  Changes    Path
> >   1.3       +11 -0
maven/src/plugins-build/jboss/xdocs/changes.xml
> >
> >   Index: changes.xml
> >
===================================================================
> >   RCS file:
/home/cvs/maven/src/plugins-build/jboss/xdocs/changes.xml,v
> >   retrieving revision 1.2
> >   retrieving revision 1.3
> >   diff -u -r1.2 -r1.3
> >   --- changes.xml   8 Apr 2003 22:16:03 -0000   1.2
> >   +++ changes.xml   9 Apr 2003 11:54:54 -0000   1.3
> >   @@ -7,6 +7,17 @@
> >
> >      <body>
> >
> >   +    <release version="1.1" date="in CVS">
> >   +      <action dev="vmassol" type="add" due-to="James Ward"
due-to-
> > email="james@ectropic.com">
> >   +        Added new <code>maven.jboss.hostname</code> plugin
property.
> >   +        It defaults to <code>localhost</code> and gives the host
name
> >   +        of the server to stop when calling <code>maven
> jboss:stop</code>.
> >   +      </action>
> >   +      <action dev="vmassol" type="fix" due-to="James Ward"
due-to-
> > email="james@ectropic.com">
> >   +        JBoss failed to start on unix. This has been fixed.
> >   +      </action>
> >   +    </release>
> >   +
> >        <release version="1.0" date="2003-04-08">
> >          <action dev="vmassol" type="add">
> >            Plugin creation.
> >
> >
> >
> >   1.2       +8 -3      maven/src/plugins-build/jboss/plugin.jelly
> >
> >   Index: plugin.jelly
> >
===================================================================
> >   RCS file: /home/cvs/maven/src/plugins-build/jboss/plugin.jelly,v
> >   retrieving revision 1.1
> >   retrieving revision 1.2
> >   diff -u -r1.1 -r1.2
> >   --- plugin.jelly   8 Apr 2003 14:39:52 -0000   1.1
> >   +++ plugin.jelly   9 Apr 2003 11:54:56 -0000   1.2
> >   @@ -125,13 +125,18 @@
> >      <goal name="jboss:start" prereqs="jboss:init"
> >        description="Starts JBoss with our specific server
> configuration">
> >
> >   +    <!-- Construct a URL valid on any OS -->
> >   +    <j:new var="jbossfile" className="java.io.File">
> >   +      <j:arg
> value="${maven.jboss.build.dir}/${maven.jboss.conf.name}"/>
> >   +    </j:new>
> >   +    <j:set var="jbossurl" value="${jbossfile.toURL()}"/>
> >   +
> >        <java classname="org.jboss.Main" fork="yes"
dir="${maven.jboss.
> > home}/bin">
> >
> >          <sysproperty key="program.name" file="${maven.jboss.home}
> > /bin/run.bat"/>
> >          <sysproperty key="jboss.server.home.dir"
> >
file="${maven.jboss.build.dir}/${maven.jboss.conf.name}"/>
> >   -      <sysproperty key="jboss.server.home.url"
> >   -
value="file:/${maven.jboss.build.dir}/${maven.jboss.conf.name}"/>
> >   +      <sysproperty key="jboss.server.home.url"
value="${jbossurl}"/>
> >
> >          <arg line="-c ${maven.jboss.conf.name}"/>
> >
> >   @@ -153,7 +158,7 @@
> >        description="Stops JBoss">
> >
> >        <java classname="org.jboss.Shutdown" fork="yes">
> >   -      <arg value="localhost"/>
> >   +      <arg value="${maven.jboss.hostname}"/>
> >
> >          <classpath>
> >            <pathelement
> location="${maven.jboss.home}/bin/shutdown.jar"/>
> >
> >
> >
> >   1.2       +3 -0
maven/src/plugins-build/jboss/plugin.properties
> >
> >   Index: plugin.properties
> >
===================================================================
> >   RCS file:
/home/cvs/maven/src/plugins-build/jboss/plugin.properties,v
> >   retrieving revision 1.1
> >   retrieving revision 1.2
> >   diff -u -r1.1 -r1.2
> >   --- plugin.properties   8 Apr 2003 14:39:52 -0000   1.1
> >   +++ plugin.properties   9 Apr 2003 11:54:56 -0000   1.2
> >   @@ -44,3 +44,6 @@
> >    maven.jboss.default.deploy.includes = **/*
> >    maven.jboss.default.deploy.excludes =
> >
> >   +# Host name of the server where JBoss is running.
> >   +# Note: This is used to shut JBoss down.
> >   +maven.jboss.hostname = localhost
> >
> >
> >
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> > For additional commands, e-mail: dev-help@maven.apache.org
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: cvs commit: maven/src/plugins-build/jboss plugin.jelly plugin.properties

Posted by di...@multitask.com.au.
>   +    <j:new var="jbossfile" className="java.io.File">
>   +      <j:arg 
value="${maven.jboss.build.dir}/${maven.jboss.conf.name}"/>
>   +    </j:new>
You know there's an easier way to do this with the jelly util:file tag.

See http://jakarta.apache.org/commons/jelly/libs/util/tags.html#util:file
--
dIon Gillard, Multitask Consulting
Blog:      http://www.freeroller.net/page/dion/Weblog
Work:      http://www.multitask.com.au


vmassol@apache.org wrote on 09/04/2003 09:54:56 PM:

> vmassol     2003/04/09 04:54:56
> 
>   Modified:    src/plugins-build/jboss/xdocs changes.xml
>                src/plugins-build/jboss plugin.jelly plugin.properties
>   Log:
>   - Added new <code>maven.jboss.hostname</code> plugin property. It 
> defaults to <code>localhost</code> and gives the host name of the 
> server to stop when calling <code>maven jboss:stop</code>.
> 
>   - JBoss failed to start on unix. This has been fixed.
> 
> 
>   Revision  Changes    Path
>   1.3       +11 -0     maven/src/plugins-build/jboss/xdocs/changes.xml
> 
>   Index: changes.xml
>   ===================================================================
>   RCS file: /home/cvs/maven/src/plugins-build/jboss/xdocs/changes.xml,v
>   retrieving revision 1.2
>   retrieving revision 1.3
>   diff -u -r1.2 -r1.3
>   --- changes.xml   8 Apr 2003 22:16:03 -0000   1.2
>   +++ changes.xml   9 Apr 2003 11:54:54 -0000   1.3
>   @@ -7,6 +7,17 @@
> 
>      <body>
> 
>   +    <release version="1.1" date="in CVS">
>   +      <action dev="vmassol" type="add" due-to="James Ward" due-to-
> email="james@ectropic.com">
>   +        Added new <code>maven.jboss.hostname</code> plugin property.
>   +        It defaults to <code>localhost</code> and gives the host name
>   +        of the server to stop when calling <code>maven 
jboss:stop</code>.
>   +      </action>
>   +      <action dev="vmassol" type="fix" due-to="James Ward" due-to-
> email="james@ectropic.com">
>   +        JBoss failed to start on unix. This has been fixed.
>   +      </action>
>   +    </release>
>   + 
>        <release version="1.0" date="2003-04-08">
>          <action dev="vmassol" type="add">
>            Plugin creation.
> 
> 
> 
>   1.2       +8 -3      maven/src/plugins-build/jboss/plugin.jelly
> 
>   Index: plugin.jelly
>   ===================================================================
>   RCS file: /home/cvs/maven/src/plugins-build/jboss/plugin.jelly,v
>   retrieving revision 1.1
>   retrieving revision 1.2
>   diff -u -r1.1 -r1.2
>   --- plugin.jelly   8 Apr 2003 14:39:52 -0000   1.1
>   +++ plugin.jelly   9 Apr 2003 11:54:56 -0000   1.2
>   @@ -125,13 +125,18 @@
>      <goal name="jboss:start" prereqs="jboss:init"
>        description="Starts JBoss with our specific server 
configuration">
> 
>   +    <!-- Construct a URL valid on any OS -->
>   +    <j:new var="jbossfile" className="java.io.File">
>   +      <j:arg 
value="${maven.jboss.build.dir}/${maven.jboss.conf.name}"/>
>   +    </j:new>
>   +    <j:set var="jbossurl" value="${jbossfile.toURL()}"/>
>   +
>        <java classname="org.jboss.Main" fork="yes" dir="${maven.jboss.
> home}/bin">
> 
>          <sysproperty key="program.name" file="${maven.jboss.home}
> /bin/run.bat"/>
>          <sysproperty key="jboss.server.home.dir" 
>            file="${maven.jboss.build.dir}/${maven.jboss.conf.name}"/>
>   -      <sysproperty key="jboss.server.home.url"
>   - value="file:/${maven.jboss.build.dir}/${maven.jboss.conf.name}"/>
>   +      <sysproperty key="jboss.server.home.url" value="${jbossurl}"/>
> 
>          <arg line="-c ${maven.jboss.conf.name}"/>
> 
>   @@ -153,7 +158,7 @@
>        description="Stops JBoss">
> 
>        <java classname="org.jboss.Shutdown" fork="yes">
>   -      <arg value="localhost"/>
>   +      <arg value="${maven.jboss.hostname}"/>
> 
>          <classpath>
>            <pathelement 
location="${maven.jboss.home}/bin/shutdown.jar"/>
> 
> 
> 
>   1.2       +3 -0      maven/src/plugins-build/jboss/plugin.properties
> 
>   Index: plugin.properties
>   ===================================================================
>   RCS file: /home/cvs/maven/src/plugins-build/jboss/plugin.properties,v
>   retrieving revision 1.1
>   retrieving revision 1.2
>   diff -u -r1.1 -r1.2
>   --- plugin.properties   8 Apr 2003 14:39:52 -0000   1.1
>   +++ plugin.properties   9 Apr 2003 11:54:56 -0000   1.2
>   @@ -44,3 +44,6 @@
>    maven.jboss.default.deploy.includes = **/*
>    maven.jboss.default.deploy.excludes =
> 
>   +# Host name of the server where JBoss is running.
>   +# Note: This is used to shut JBoss down.
>   +maven.jboss.hostname = localhost
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org