ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Weintraub <qazw...@gmail.com>
Subject Re: missing ant-starteam.jar
Date Sun, 26 Sep 2010 17:22:34 GMT
First, you have to get ant-starteam.jar which may require that you
build it. You might be able to get it from StarTeam itself since
they'd be most interested in maintaining this. They may have even
defined their own ant tasks which probably work better than the
standard ones.

Then, you can put this jar inside the $ANT_HOME/lib directory.
However, I find it better to put the jar as part of the project (like
in an antlib directory in the root of the project) and then use the
<taskdef> to define a classpath to this directory. That way, not
everyone has to install this jarfile in their Ant installation.

I get leery whenever someone wants to define version control tasks
inside their build.xml. It usually means that you're doing something
"wrong". Sometimes, this is used to store built jar files inside the
version control system for other projects to share.

Instead, you should be using something like Nexus or Artifactory to
store built jars and have other projects retrieve them from there.
And, you can use Nexus and Artifactory to give developers access to
the third party jars you need, so they don't have to be stored in the
repository either.

Yes, Nexus and Artifactory are Maven repositories, but you can easily
use them for non-Maven projects too. In fact, Ant has a subcomponent
called Ivy that gives Ant based projects access to these other
repositories.

Other times, there is an attempt to update a "version" file with the
latest version number. There's really no need to do this either.
Simply create a copy of the file with the correct information and
include that in your build. Then, make sure the "clean" target wipes
it out.

Version control tasks shouldn't be in your Ant script. After all, you
can't get your build.xml unless you use an outside command to fetch it
from your version control system anyway. Updates and commits should be
done via the version control system and not something that could
accidentally get done via your build.xml script.

If you use CruiseControl, it is sometimes necessary to do the update
via your build.xml script, but Hudson allows you to separate out your
version control fetch from the build.xml script which is one of the
main reasons I recommend Hudson over CruiseControl.

Think of it this way: If you need to update your version control
system, you don't want to have to update all of your Ant scripts too.

On Mon, Sep 20, 2010 at 12:37 PM, Thibadeau, Daniel
<dan.thibadeau@hp.com> wrote:
>
> How do you use tasks that are moved to the Sandbox?  Is there a way to rebuild the ant-starteam.jar
from those Sandbox files?
>
> All that are there are the *.java files.  What about the documentation, test/build files,
etc?
>
> Using Google to try to put this all back together I found references to a manual for
this task.  I found an old copy at:
>
> http://antinstaller.sourceforge.net/manual/manual/OptionalTasks/starteam.html
>
> Also, I found patches on the Ant dev mailing list archives as late as September 2009
and there are still bugs listed in the Bugzilla report:
>
>    |47995|New|Nor|2009-10-14|StarTeam: The 'StarTeam exclusive lock' option
>    |47996|New|Nor|2009-10-14|StarTeam: addUncontrolled option doesn't work     |
>
> so is there a central spot this is being maintained?  Where?
>
> Dan T.
>
> -----Original Message-----
> From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de]
> Sent: Tuesday, September 14, 2010 4:04 AM
> To: user@ant.apache.org
> Subject: AW: missing ant-starteam.jar
>
> The StarTeam tasks moved to Sandbox in 2007 to remove external tasks where we dont have
the software for development/test from the core.
> http://ant.apache.org/antlibs/sandbox.html
>
>
> Jan
>
>
>>-----Ursprüngliche Nachricht-----
>>Von: Thibadeau, Daniel [mailto:dan.thibadeau@hp.com]
>>Gesendet: Montag, 13. September 2010 17:25
>>An: user@ant.apache.org
>>Betreff: missing ant-starteam.jar
>>
>>I am trying to use Ant with our StarTeam implementation.  I've
>>found documentation that says Ant supports StarTeam, but it
>>seems the ant-starteam.jar is missing from the Optional Tasks.
>>
>>This gives a 404 error:
>>
>>http://ant.apache.org/manual/OptionalTasks/starteam.html
>>
>>The only thing I found when doing a search for StarTeam on the
>>ant.apache.org web site is some "Checkstyle Audit" and Sandbox pages:
>>
>>https://svn.apache.org/repos/asf/ant/sandbox/antlibs/starteam/t
>>runk/src/main/org/apache/tools/ant/taskdefs/optional/starteam/
>>
>>Is this no longer supported?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>



-- 
David Weintraub
qazwart@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message