When you want to use SvnAnt, you have to put svnant.jar, svnClientAdapter.jar and svnjavahl.jar (if you have not explicitly set javahl="false" in your svn-call) in your ANT_HOME directory.
Next is to announce the usage of svn in your Ant-File:
<taskdef resource="svntask.properties">
But this all doesn't work, if you haven't put your subversion bin directory to your PATH Variable.
When you have forgotten this you get the error-Message:
"Cannot use javahl nor command line svn client"
Usage of the svn task is then for example:
<svn username="user" password="secret" javahl="false">
<checkout url="https://checkout.com" destpath="//destPath"/>
</checkout>
Wednesday, June 20, 2007
Monday, June 11, 2007
Subversion & Ant
Today I experienced a little Problem with Subversion and my own Ant build.xml.
Subclipse added my WEB-INF/classes directory to the repository and my build.xml deleted this directory before building it new. Therefore also the .svn directory was deleted and I always got the error message:
Working copy not locked; this is probably a bug, please report
When googling around I found some newsgroup entries, saying I shall retrieve my old .svn directory
...
...
...
Very funny.
The only way to restore my workspace was to synchronize my latest changes step by step, then delete the whole Project in workspace, remove the class directory DIRECTLY from the SVN-Repository and checkout the Project again.
Subclipse added my WEB-INF/classes directory to the repository and my build.xml deleted this directory before building it new. Therefore also the .svn directory was deleted and I always got the error message:
Working copy not locked; this is probably a bug, please report
When googling around I found some newsgroup entries, saying I shall retrieve my old .svn directory
...
...
...
Very funny.
The only way to restore my workspace was to synchronize my latest changes step by step, then delete the whole Project in workspace, remove the class directory DIRECTLY from the SVN-Repository and checkout the Project again.
Tuesday, June 05, 2007
Java Property-Files
Things I learned for today:
- When using a .property file, be careful to use exactly the same key than in code.
- When using a .property file, don't forget to remove quotes from your copied String.
Java Obfuscator
... don't know if I need an Obfuscator sometimes, but here is a Link for all possible open-source and commercial Ofcuscators ...
Subscribe to:
Posts (Atom)