I have file.txt in some jar. Ant is executed with this jar on classpath. This
<available resource="file.txt" property="file.txt.exists"/>
sets the property.
How can I copy that resource to some location?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Assuming for you have two files in a directory:
build.xml
test.jar contains a single file: file.txt
Running the following command…
…will extract file.txt from test.jar into the directory.