Or perhaps better
Main Topics
Browse All TopicsI have jar file called "webtop.jar" at the following location
C:/cvs_repo/Documentum/web
In this jar there is a properties file
com\documentum\web\formext
I need to write a ANT target which would pick up a properties file from another location and update this properties file (within the jar)
So I did the following
<target name="updateJar" >
<jar jarfile="C:/cvs_repo/Docum
includesfile="C:/cvs_repo/
basedir="C:/cvs_repo/Docum
update="true" />
</target>
Although this is not giving any error but it does not update the properties file in the JAR.
Can someone please let me know howt o achieve this?
thank you
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Thank you
I did this
<target name="websso.is.false" unless="${websso}">
<echo>websso == FALSE</echo>
<jar jarfile="C:/cvs_repo/Docum
basedir="C:/cvs_repo/Docum
update="true" >
<fileset file="C:/cvs_repo/Document
</jar>
</target>
but it gives me the following error
A zip file cannot include itself
This also gives the same error
<target name="websso.is.false" unless="${websso}">
<echo>websso == FALSE</echo>
<jar jarfile="C:/cvs_repo/Docum
basedir="C:/cvs_repo/Docum
update="true" >
<fileset dir="C:/cvs_repo/Documentu
</jar>
</target>
Thanks a lot.
It works. But there are a couple of problems
<target name="websso.is.false" unless="${websso}">
<echo>websso == FALSE</echo>
<jar jarfile="C:/Documents and Settings/user/Desktop/webt
basedir="C:/cvs_repo/Docum
update="true" >
<fileset dir="C:/cvs_repo/Documentu
</jar>
</target>
1. the base directory which contains the properties file to be added to the jar contains some other files as well. In the jar I want only "AuthenticationSchemes-web
2. webtop.jar has the following structure.
com/documentum/web/formext
The properties file needs to be added to the session folder. But right now is is getting added parallel to the com folder.
Can you please let me know how to solve the above two problems.
Thank you
I did this
<target name="websso.is.false" unless="${websso}">
<echo>websso == FALSE</echo>
<jar jarfile="C:/Documents and Settings/user/Desktop/webt
basedir="C:/cvs_repo/Docum
update="true" >
<fileset dir="C:/cvs_repo/Documentu
includes="AuthenticationSc
</jar>
</target>
Still it's adding the other files.
Business Accounts
Answer for Membership
by: CEHJPosted on 2009-10-07 at 02:51:02ID: 25513546
Make
Documentum /webtop/bu ild/Authen ticationSc hemes-webs so.propert ies"
>> includesfile="C:/cvs_repo/
the nested following (and adjust the jar task accordingly)
Select allOpen in new window