I have 2 files Accounts-JBOSS-TEST.xml and Accounts-WAS-TEST.xml in /www/inf/xxxx/config. My java code is written in such a way that,
Accounts-JBOSS-TEST.xml is used when it is running in JBOSS container;
Accounts-WAS-TEST.xml is used when it is running in JBOSS container
Accounts-TEST.xml is used when it is not running in any container (java main class).
But there is no Accounts-TEST.xml file in /www/inf/xxxx/config. I want to link Accounts-JBOSS-TEST.xml to Accounts-TEST.xml and remove the file later. I know I can do this in linux using "ln -sf" command.
ln -sf /www/inf/xxxx/config/Accounts-JBOSS-TEST.xml /www/inf/xxxx/config/Accounts-TEST.xml
rm -f /www/inf/xxxx/config/Accounts-TEST.xml
Please let me know if there is an equivalent way of doing this in eclipse using VM arguments.
Stefan Evans wrote:I don't know any way of doing it with VM arguments,
But you can create linked file elements in Eclipse with the Advanced options in the "New File" wizard.
Just File:New -- select Other..., and then the option is under General:File.
Thank you for your help. I do not know until now, we can link to a folder/file in eclipse. This is something new I learned here. But my problem is, I don't have that file there. It has to be created if it does not exist and should be linked to another file and then gets deleted after the execution of my program.