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 > http://ant.apache.org/manual/tutorial-writing-tasks.html 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: > http://ant.1045680.n5.nabble.com/Where-should-the-jar-files-for-user-defined-tasks-be-placed-tp5713363.html > Sent from the Ant - Dev mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
