ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From TM <>
Subject Re: Where should the jar files for user defined tasks be placed?
Date Sun, 01 Jul 2012 22:19:13 GMT
Hi Marcipicus,

Debian/Ubuntu packages dump jars into `/usr/share/java/`, symlinked from
`/usr/share/ant/lib/`.  I would use `/usr/local/share/ant/` for your task.

`ln -s /path/to/my.jar /usr/share/ant/lib/my.jar`

This is not ideal (see /usr/share/ant/bin/ant):

  # ...Because the launcher is used, libraries linked in
  # ANT_HOME/lib will also be included, but this is discouraged
  # as it is not java-version safe. A user should request optional
  # jars and their dependencies via the OPT_JAR_LIST variable

Chase `$LOCALCLASSPATH` and `$OPT_JAR_LIST` through there.

On 07/01/2012 03:33 PM, Marcipicus wrote:
> Hi, I've recently developed an ant Task and I'm trying to figure out where
> the jar file is supposed to be placed.
> I went through the tutorial at 
> and the only
> reference I found to installation said to drop the file in the correct
> place.
> So I assume there's a plugins/tasks directory and I was hoping to find out
> where that would be. I'm using Linux Mint 12 as my operating system.
> Any help anyone can give me is greatly appreciated.
> --
> View this message in context:
> Sent from the Ant - Dev mailing list archive at
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message