Date: 2005-03-10T05:53:33 Editor: RenaudRichardet Wiki: XML Graphics - FOP Wiki Page: FOPIDESetupGuide URL: http://wiki.apache.org/xmlgraphics-fop/FOPIDESetupGuide
no comment Change Log: ------------------------------------------------------------------------------ @@ -44,7 +44,15 @@ http://cvs.apache.org/~jeremias/eclipse-setup/CheckOutHEAD.png ==== Setup source directories and libraries ==== -In order to enjoy the automatic compilation feature of Eclipse, you have to define source directories and add libraries in the project preferences ("source" and "libraries" tabs). Because FOP uses Java code generated from XML in the src/codegen directory, you'll still have to run the "codegen" target in the buildfile. The generated code is written to the '''build/gensrc''' directory. ''See notes below on adding source directories before you do this.'' +In order to enjoy the automatic compilation feature of Eclipse, you have to define source directories and add libraries in the project preferences ("source" and "libraries" tabs). Because FOP uses Java code generated from XML in the src/codegen directory, you'll still have to run the "codegen" target in the buildfile. The generated code is written to the '''build/gensrc''' directory. ''See notes below on adding source directories before you do this. Her e is how you do it:'' + +Open the Java Build Path of the Project + * in the "source tab", remove all the existings "source folders on build path" + * set the "default output folder": + * click on "Browse..." and "create" the folder "build" (under your project root) + * "create" the folder "eclipse" under "build" + * when you come back to the "Java Build Path" dialog, you should have something like "/<your project name>/build/eclipse" in the "default output folder" + Add the following directories as source directories: * build/gensrc * Add this '''before''' running the ''codegen'' target outside Eclipse. When adding, you will have the opportunity to create a new directory. Create this directory. After running codegen, ''Refresh'' the directory in the Navigator view. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]