You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@gump.apache.org by "Adam R. B. Jack" <aj...@apache.org> on 2004/10/05 19:59:43 UTC

Multiple targets|goals (for Ant|Maven|NAnt)

I found that one project (easymock) used an Ant target with a space in it,
and (unfortunately) Gump was using space as a target list separator. I
changed the Gump code to use comma instead, and attempted to change the
metadata for project accordingly. Hopefully I zapped all occurrences,
apologies if I did not.

I've updated the documentation for this (e.g. below) and will update the WWW
site shortly.

    http://gump.apache.org/metadata/ant.html#ant

regards

Adam
----- Original Message ----- 
From: <aj...@apache.org>
To: <co...@gump.apache.org>
Sent: Tuesday, October 05, 2004 11:44 AM
Subject: svn commit: rev 53813 - in gump/trunk: python/gump/build
python/gump/test src/documentation/content/xdocs/metadata


> Author: ajack
> Date: Tue Oct  5 10:44:53 2004
> New Revision: 53813
>
> Modified:
>    gump/trunk/python/gump/build/ant.py
>    gump/trunk/python/gump/build/maven.py
>    gump/trunk/python/gump/build/nant.py
>    gump/trunk/python/gump/test/documenter.py
>    gump/trunk/src/documentation/content/xdocs/metadata/ant.xml
>    gump/trunk/src/documentation/content/xdocs/metadata/maven.xml
> Log:
> Allow target="X,Y" instead of target="X Y", since space is a valid
> target character (and mockeasy uses it).
>
> Modified: gump/trunk/python/gump/build/ant.py
>
============================================================================
==
> --- gump/trunk/python/gump/build/ant.py (original)
> +++ gump/trunk/python/gump/build/ant.py Tue Oct  5 10:44:53 2004
> @@ -157,7 +157,7 @@
>
>          # End with the target (or targets)...
>          if target:
> -            for targetParam in target.split():
> +            for targetParam in target.split(','):
>                  cmd.addParameter(targetParam)
>
>          return cmd
>
> Modified: gump/trunk/python/gump/build/maven.py
>
============================================================================
==
> --- gump/trunk/python/gump/build/maven.py (original)
> +++ gump/trunk/python/gump/build/maven.py Tue Oct  5 10:44:53 2004
> @@ -167,7 +167,7 @@
>
>          # End with the goal...
>          if goal:
> -            for goalParam in goal.split():
> +            for goalParam in goal.split(','):
>                  cmd.addParameter(goalParam)
>
>          return cmd
>
> Modified: gump/trunk/python/gump/build/nant.py
>
============================================================================
==
> --- gump/trunk/python/gump/build/nant.py (original)
> +++ gump/trunk/python/gump/build/nant.py Tue Oct  5 10:44:53 2004
> @@ -161,7 +161,7 @@
>
>          # End with the target (or targets)...
>          if target:
> -            for targetParam in target.split():
> +            for targetParam in target.split(','):
>                  cmd.addParameter(targetParam)
>
>          return cmd
>
> Modified: gump/trunk/python/gump/test/documenter.py
>
============================================================================
==
> --- gump/trunk/python/gump/test/documenter.py (original)
> +++ gump/trunk/python/gump/test/documenter.py Tue Oct  5 10:44:53 2004
> @@ -49,7 +49,7 @@
>          out.close()
>
>      def testXDocs(self):
> -        xtest=os.path.join(dir.test,'xdocs')
> +        xtest=os.path.join(gump.core.config.dir.test,'xdocs')
>          if not os.path.exists(xtest): os.mkdir(xtest)
>          documenter=XDocDocumenter(self.run,xtest,'http://someplace')
>          documenter.document()
>
> Modified: gump/trunk/src/documentation/content/xdocs/metadata/ant.xml
>
============================================================================
==
> --- gump/trunk/src/documentation/content/xdocs/metadata/ant.xml (original)
> +++ gump/trunk/src/documentation/content/xdocs/metadata/ant.xml Tue Oct  5
10:44:53 2004
> @@ -47,7 +47,7 @@
>        <tr>
>          <td>target</td>
>          <td>
> -        The ant target to invoke. <em>This can be a space separated
list.</em>
> +        The ant target to invoke. <em>This can be a comma separated list.
Spaces are preserved.</em>
>          </td>
>          <td>No. Defaults to the default target defined by the build
file.</td>
>        </tr>
>
> Modified: gump/trunk/src/documentation/content/xdocs/metadata/maven.xml
>
============================================================================
==
> --- gump/trunk/src/documentation/content/xdocs/metadata/maven.xml
(original)
> +++ gump/trunk/src/documentation/content/xdocs/metadata/maven.xml Tue Oct
5 10:44:53 2004
> @@ -64,7 +64,7 @@
>        </tr>
>        <tr>
>          <td>goal</td>
> -        <td>The Maven goal to invoke.  <em>This can be a space separated
list.</em></td>
> +        <td>The Maven goal to invoke.  <em>This can be a comma separated
list. Spaces are preserved.</em></td>
>          <td>No. Defaults to <strong>jar</strong>.</td>
>        </tr>
>      </table>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org


Re: Multiple targets|goals (for Ant|Maven|NAnt)

Posted by Stefan Bodewig <bo...@apache.org>.
On Tue, 5 Oct 2004, Adam R. B. Jack <aj...@apache.org> wrote:

> I found that one project (easymock) used an Ant target with a space
> in it, and (unfortunately) Gump was using space as a target list
> separator.

I think I posted about it, when I added easymock, but unfortunately
lacked the time to follow up on it.

> I changed the Gump code to use comma instead, and attempted to
> change the metadata for project accordingly.

Shouldn't cause too many problems since target names with commas in
them are even less likely than ones with spaces in Ant.

Stefan


---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org