Want Eclipse .class files also in other folder apart from bin

1.7k Views Asked by At

I want when Developer save java file in eclipse , And eclipse by default generate it .class file in bin folder,So this .class file is also generate in other folder also. I can not copy /paste that bin class file to new desired location because of client restriction. So only option remaining of doing this is to somehow give two path one is of bin folder path & other is of my new folder path so when Developer press Ctrl+S ,eclipse automatically generate .class in two different locations. Any idea how should i achieve this??

1

There are 1 best solutions below

4
howlger On

If you want the .class files in only in one, but different folder, change the output folder (which is by default the bin folder).

If you want to duplicate/synchronize the .class files to/with another folder, create a project builder Ant buildfile, which for example uses the Sync Ant task. Make sure, the Ant file will be executed after the Java Builder (in step 13.: below Java Builder).