I have set up a project for roller with eclipse 3.1.1 - no problems with
compile time errors. If you want to get rid of the compile errors within
eclipse, another thing you need to do (besides finding the correct jars for the
classpath) is to link the output from the code generators as well. So some
steps which should do it are:
1) do a complete ant build
2) set up the eclipse project (incl the libs)
3) link /roller/build/generated/src.business and .../src.presentation as source
folders to the project
I have copied below my .classpath and .project setup. You will need to modify
the paths to the libs, but actually this works fine for me with Roller 2.3
Martin
####################################
# .classpath setup
####################################
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry output="compile_web" kind="src" path="src"/>
<classpathentry kind="src" path="src.business"/>
<classpathentry output="compile_web" kind="src"
path="src.presentation"/>
<classpathentry sourcepath="JRE_SRC" kind="var" path="JRE_LIB"/>
<classpathentry kind="lib"
path="C:/src/roller/tools/lib/activation.jar"/>
<classpathentry kind="lib"
path="C:/src/roller/tools/lib/commons-betwixt-1.0-beta-1.jar"/>
<classpathentry kind="lib"
path="C:/src/roller/tools/lib/commons-codec-1.3.jar"/>
<classpathentry kind="lib"
path="C:/src/roller/tools/lib/concurrent-1.3.2.jar"/>
<classpathentry kind="lib"
path="C:/src/roller/tools/lib/jaxen-full.jar"/>
<classpathentry kind="lib" path="C:/src/roller/tools/lib/jdom.jar"/>
<classpathentry kind="lib"
path="C:/src/roller/tools/lib/log4j-1.2.11.jar"/>
<classpathentry kind="lib"
path="C:/src/roller/tools/lib/lucene-1.4.3.jar"/>
<classpathentry kind="lib" path="C:/src/roller/tools/lib/mail.jar"/>
<classpathentry kind="lib" path="C:/src/roller/tools/lib/rome-0.8.jar"/>
<classpathentry kind="lib"
path="C:/src/roller/tools/lib/rome-fetcher-0.8.jar"/>
<classpathentry kind="lib" path="C:/src/roller/tools/lib/saxpath.jar"/>
<classpathentry kind="lib"
path="C:/src/roller/tools/lib/velocity-1.4.jar"/>
<classpathentry kind="lib"
path="C:/src/roller/tools/lib/velocity-dep-1.4.jar"/>
<classpathentry kind="lib"
path="C:/src/roller/tools/lib/velocity-tools-1.1.jar"/>
<classpathentry kind="lib"
path="C:/src/roller/tools/struts-1.2.4/lib/commons-beanutils.jar"/>
<classpathentry kind="lib"
path="C:/src/roller/tools/struts-1.2.4/lib/commons-collections.jar"/>
<classpathentry kind="lib"
path="C:/src/roller/tools/struts-1.2.4/lib/commons-digester.jar"/>
<classpathentry kind="lib"
path="C:/src/roller/tools/struts-1.2.4/lib/commons-fileupload.jar"/>
<classpathentry kind="lib"
path="C:/src/roller/tools/struts-1.2.4/lib/commons-lang-2.0.jar"/>
<classpathentry kind="lib"
path="C:/src/roller/tools/struts-1.2.4/lib/commons-logging.jar"/>
<classpathentry kind="lib"
path="C:/src/roller/tools/struts-1.2.4/lib/commons-validator.jar"/>
<classpathentry kind="lib"
path="C:/src/roller/tools/lib/taglibs-string.jar"/>
<classpathentry kind="lib"
path="C:/src/roller/tools/lib/xmlrpc-1.2-b1.jar"/>
<classpathentry kind="lib"
path="C:/src/roller/tools/struts-1.2.4/lib/antlr.jar"/>
<classpathentry kind="lib"
path="C:/src/roller/tools/struts-1.2.4/lib/jakarta-oro.jar"/>
<classpathentry kind="lib"
path="C:/src/roller/tools/struts-1.2.4/lib/struts-el.jar"/>
<classpathentry kind="lib"
path="C:/src/roller/tools/struts-1.2.4/lib/struts.jar"/>
<classpathentry kind="lib"
path="C:/src/roller/tools/buildtime/tomcat-5.0.28/jsp-api.jar"/>
<classpathentry kind="lib"
path="C:/src/roller/tools/buildtime/tomcat-5.0.28/servlet-api.jar"/>
<classpathentry kind="lib"
path="C:/src/roller/tools/jakarta-taglibs-standard-1.1.2/lib/jstl.jar"/>
<classpathentry kind="lib"
path="C:/src/roller/tools/jakarta-taglibs-standard-1.1.2/lib/standard.jar"/>
<classpathentry kind="lib"
path="C:/src/roller/tools/jakarta-taglibs-standard-1.1.2/lib/xalan.jar"/>
<classpathentry kind="lib"
path="C:/src/roller/tools/spring-1.2/acegi-security-1.0.0-RC1.jar"/>
<classpathentry kind="lib"
path="C:/src/roller/tools/spring-1.2/spring.jar"/>
<classpathentry kind="lib"
path="C:/src/roller/tools/hibernate-3.1/lib/hibernate3.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
####################################
# .project setup
####################################
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>roller</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.ibm.etools.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
<linkedResources>
<link>
<name>src.presentation</name>
<type>2</type>
<location>C:/src/roller/build/generated/src.presentation</location>
</link>
<link>
<name>src.business</name>
<type>2</type>
<location>C:/src/roller/build/generated/src.business</location>
</link>
<link>
<name>compile_web</name>
<type>2</type>
<location>C:/src/roller/build/compile_web</location>
</link>
</linkedResources>
</projectDescription>
Dave Johnson wrote:
> I use Netbeans exclusively, but the build is Ant based (and not
> Netbeans specific) so you should have no problem with any IDE.
>
> If you want the Eclipse code completion, refactoring and other
> gooodies to work, just make sure you have all of the jars in your
> Eclipse project classpath. The existing Eclipse .project and
> .classpath files are probably out of date.
>
> - Dave
>
>
> On 6/23/06, Matthew Holt <[EMAIL PROTECTED]> wrote:
>
>> What IDE are you using to develop Roller? I tried downloading it from
>> SVN and using it with Eclipse, but tons of compile time errors.
>>
>> Thanks,
>> Matt
>>
>
>
--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer