I have this scenario:
There is a text file(first.txt) and it is located in (souceApp/EAR/PresentationApp) and I need to copy this file to another file (first.jsp) and the first.jsp should be placed in the (sourceApp/WAR/testWebApp) .
This should be done in the build.xml file.
The build.xml file is present for each webapp inside WAR and also present in the souceAppdirectory.
The build.xml present in the sourceApp is the main/parent build.xml which will refer to build.xml for WAR,EAR...etc..,
Here is what I did:
<target name="copy-file" des="copies file>
<copy file ="first.txt" tofile="first.jsp" overwrite="yes" />
I want to know the what would be the classpath (the loactions )for "first.txt" and first.jsp inside the above mentioned target .
first.jsp is not exiting in the testWebApp. I believe the copy target will create a new file called first.jsp before its copied from first.txt.
also wated to know if this target "copy file" should be written inside build.xml of testWebApp or build.xml of sourceApp?
Any help would be greatly appreciated.