How would I craft a script to remove a particular file from the build path for a java project in eclipse?
Hence; not going through the eclipse GUI, right click project, configure build path .. blah blah blah.
Much thanks in advance
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.
I’m not sure if you want to do this at runtime of your code or to have some external process to modify the build path for some other eclipse project. One way to achieve what you want is to programmatically modify the
.classpathfile inside the root of the project. You would then parse the XML forclasspathentry. A typical.classpathmight look like this: