Hi, As per a page http://www.xwiki.org/xwiki/bin/view/Community/BuildingInEclipse there are a couple of issues if one tries to build XWiki inside eclipse. Is it of interest to get this working properly ? if so there is a .classpath file that fixes some (trivial) problems ( http://www.xwiki.org/xwiki/bin/download/Community/BuildingInEclipse/.classpa... ). The catus ant task def has some errors (inside eclipse anyway) - seems to be due to the interaction between cactus-ant and junit the following warning is issued: A class needed by class org.apache.cactus.integration.ant.CactusTask cannot be found: junit/framework/TestListener xwiki-trunk build.xml line 211 This actually prevents the ant script from being executed correctly - since I don't (currently) run the targets that needs this I can get around the problem by simply commenting out the taskdef - however I'm a bit stumped on how to fix this properly (since the class in question should be available). Assuming building in eclipse is desired (and that the svn repository should contain the .classpath and other . files used by eclipse) shall I simply open a couple of jira's for these problems ? Cheers, Dan PS. Apologies for preempting any discussions on xwiki-dev by creating the "BuildingInEclipse" page, I assumed that since I could create content on the wiki then it was ok to do so... In future I'll discuss on dev list prior to creating xwiki.org content :)
Hi Dan, From: Dan Murphy [mailto:[email protected]] Sent: mercredi 3 janvier 2007 12:42 To: [email protected] Subject: [xwiki-dev] Errors building in eclipse Hi, As per a page http://www.xwiki.org/xwiki/bin/view/Community/BuildingInEclipse there are a couple of issues if one tries to build XWiki inside eclipse. Is it of interest to get this working properly ? if so there is a .classpath file that fixes some (trivial) problems (http://www.xwiki.org/xwiki/bin/download/Community/BuildingInEclipse/.classp ath ). Yes. The catus ant task def has some errors (inside eclipse anyway) - seems to be due to the interaction between cactus-ant and junit the following warning is issued: A class needed by class org.apache.cactus.integration.ant.CactusTask cannot be found: junit/framework/TestListener xwiki-trunk build.xml line 211 This is because Ant has some limitation in that you need to have the junit.jar in your ANTHOME/lib directory. This actually prevents the ant script from being executed correctly - since I don't (currently) run the targets that needs this I can get around the problem by simply commenting out the taskdef - however I'm a bit stumped on how to fix this properly (since the class in question should be available). Assuming building in eclipse is desired (and that the svn repository should contain the .classpath and other . files used by eclipse) shall I simply open a couple of jira's for these problems ? Yes please (and provide patches too ;-)). Note that in the future we'll remove all IDE files from SVN and instead use Maven2 to generate these files for us (mvn eclipse:eclipse and mvn idea:idea). But for now they are there and they're supposed to be working. Anything that is not working is a bug. Thanks -Vincent Cheers, Dan PS. Apologies for preempting any discussions on xwiki-dev by creating the "BuildingInEclipse" page, I assumed that since I could create content on the wiki then it was ok to do so... In future I'll discuss on dev list prior to creating xwiki.org content :) It's fine Dan. No worries. It's just that it's easier to work out stuff together than finding out randomly that there are issues by finding a page that explains the issues. I'm talking about the "Correct a few classpath & ant problems" section.
On Wednesday 03 January 2007 06:42, Dan Murphy wrote:
Hi, As per a page http://www.xwiki.org/xwiki/bin/view/Community/BuildingInEclipse there are a couple of issues if one tries to build XWiki inside eclipse.
Is it of interest to get this working properly ? if so there is a .classpath file that fixes some (trivial) problems ( http://www.xwiki.org/xwiki/bin/download/Community/BuildingInEclipse/.classp ath ).
The catus ant task def has some errors (inside eclipse anyway) - seems to be due to the interaction between cactus-ant and junit the following warning is issued: A class needed by class org.apache.cactus.integration.ant.CactusTask cannot be found: junit/framework/TestListener xwiki-trunk build.xml line 211
You don't need to copy the junit jar file into ant/lib, although that is what the ant cactus task documentation is recommending. But I had problems with conflicting junit jar files in the past. You can do menu Run > External tools > External tools, to create a configuration for your ant build -if not already done (usually the tool does it for you). Then go to the classpath tab and click on 'User Entries', and then the 'Add JARs...' button on the right. You select the junit jar file from xwiki/lib and all the rest will work without complaints.
This actually prevents the ant script from being executed correctly - since I don't (currently) run the targets that needs this I can get around the problem by simply commenting out the taskdef - however I'm a bit stumped on how to fix this properly (since the class in question should be available).
Assuming building in eclipse is desired (and that the svn repository should contain the .classpath and other . files used by eclipse) shall I simply open a couple of jira's for these problems ?
There is a .classpath I believe but I could not find a way to modify it to make the ant build work. Tell me if you do ;-)
I'm using eclipse, and it's working for me, with the files from trunk. On 1/3/07, Marc Lijour <[email protected]> wrote:
On Wednesday 03 January 2007 06:42, Dan Murphy wrote:
Hi, As per a page http://www.xwiki.org/xwiki/bin/view/Community/BuildingInEclipse there are a couple of issues if one tries to build XWiki inside eclipse.
Is it of interest to get this working properly ? if so there is a .classpath file that fixes some (trivial) problems (
http://www.xwiki.org/xwiki/bin/download/Community/BuildingInEclipse/.classp
ath ).
The catus ant task def has some errors (inside eclipse anyway) - seems to be due to the interaction between cactus-ant and junit the following warning is issued: A class needed by class org.apache.cactus.integration.ant.CactusTaskcannot be found: junit/framework/TestListener xwiki-trunk build.xml line 211
You don't need to copy the junit jar file into ant/lib, although that is what the ant cactus task documentation is recommending. But I had problems with conflicting junit jar files in the past.
You can do menu Run > External tools > External tools, to create a configuration for your ant build -if not already done (usually the tool does it for you). Then go to the classpath tab and click on 'User Entries', and then the 'Add JARs...' button on the right. You select the junit jar file from xwiki/lib and all the rest will work without complaints.
This actually prevents the ant script from being executed correctly - since I don't (currently) run the targets that needs this I can get around the problem by simply commenting out the taskdef - however I'm a bit stumped on how to fix this properly (since the class in question should be available).
Assuming building in eclipse is desired (and that the svn repository should contain the .classpath and other . files used by eclipse) shall I simply open a couple of jira's for these problems ?
There is a .classpath I believe but I could not find a way to modify it to make the ant build work. Tell me if you do ;-)
-- You receive this message as a subscriber of the [email protected] list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Really Sergiu... what's your config ? - I'm using Eclispe 3.2.1 with WTP 1.5, Subclipse under a 1.5 JDK running on Linux (kunbutu 6.0.6) - I was trying to compile the 10beta1, perhaps someone has fixed the .classpath file in trunk.... Cheers, Dan On 03/01/07, Sergiu Dumitriu <[email protected]> wrote:
I'm using eclipse, and it's working for me, with the files from trunk.
On 1/3/07, Marc Lijour <[email protected] > wrote:
On Wednesday 03 January 2007 06:42, Dan Murphy wrote:
Hi, As per a page http://www.xwiki.org/xwiki/bin/view/Community/BuildingInEclipse there are a couple of issues if one tries to build XWiki inside eclipse.
Is it of interest to get this working properly ? if so there is a .classpath file that fixes some (trivial) problems (
http://www.xwiki.org/xwiki/bin/download/Community/BuildingInEclipse/.classp
ath ).
The catus ant task def has some errors (inside eclipse anyway) - seems to be due to the interaction between cactus-ant and junit the following warning is issued: A class needed by class org.apache.cactus.integration.ant.CactusTaskcannot be found: junit/framework/TestListener xwiki-trunk build.xml line 211
You don't need to copy the junit jar file into ant/lib, although that is what the ant cactus task documentation is recommending. But I had problems with conflicting junit jar files in the past.
You can do menu Run > External tools > External tools, to create a configuration for your ant build -if not already done (usually the tool does it for you). Then go to the classpath tab and click on 'User Entries', and then the 'Add JARs...' button on the right. You select the junit jar file from xwiki/lib and all the rest will work without complaints.
This actually prevents the ant script from being executed correctly - since I don't (currently) run the targets that needs this I can get around the problem by simply commenting out the taskdef - however I'm a bit stumped on how to fix this properly (since the class in question should be available).
Assuming building in eclipse is desired (and that the svn repository should contain the .classpath and other . files used by eclipse) shall I simply open a couple of jira's for these problems ?
There is a .classpath I believe but I could not find a way to modify it to make the ant build work. Tell me if you do ;-)
-- You receive this message as a subscriber of the [email protected] list. To unsubscribe: mailto:[email protected] For general help: mailto: [email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
-- You receive this message as a subscriber of the [email protected] list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Can you try the attached file? - Menu File > Import - select Team > Team Project Set - point to the file (and eventually create a working set for it on the fly) What should happen after that It should connect to the public svn account and check out the trunk of the xwiki project for you. Then do the ant configuration I talked about before, run ant and the project builds. Content of the file (for the curious) $ cat xwiki.eclipse.teamprojectset.psf <?xml version="1.0" encoding="UTF-8"?> <psf version="2.0"> <provider id="org.tigris.subversion.subclipse.core.svnnature"> <project reference="0.9.3,svn://svn.forge.objectweb.org/svnroot/xwiki/xwiki/trunk,xwiki - trunk"/> </provider> </psf> If it works and you think it is a good idea may be we could put it somewhere on the Eclipse build page for future users. WDYT? On Wednesday 03 January 2007 11:44, Dan Murphy wrote:
Really Sergiu... what's your config ? - I'm using Eclispe 3.2.1 with WTP 1.5, Subclipse under a 1.5 JDK running on Linux (kunbutu 6.0.6) - I was trying to compile the 10beta1, perhaps someone has fixed the .classpath file in trunk.... Cheers, Dan
On 03/01/07, Sergiu Dumitriu <[email protected]> wrote:
I'm using eclipse, and it's working for me, with the files from trunk.
On 1/3/07, Marc Lijour <[email protected] > wrote:
On Wednesday 03 January 2007 06:42, Dan Murphy wrote:
Hi, As per a page http://www.xwiki.org/xwiki/bin/view/Community/BuildingInEclipse there
are a
couple of issues if one tries to build XWiki inside eclipse.
Is it of interest to get this working properly ? if so there is a .classpath file that fixes some (trivial) problems (
http://www.xwiki.org/xwiki/bin/download/Community/BuildingInEclipse/.cl assp
ath ).
The catus ant task def has some errors (inside eclipse anyway) - seems
to
be due to the interaction between cactus-ant and junit the following warning is issued: A class needed by class org.apache.cactus.integration.ant.CactusTaskcannot be found: junit/framework/TestListener xwiki-trunk build.xml
line
211
You don't need to copy the junit jar file into ant/lib, although that is what the ant cactus task documentation is recommending. But I had problems with conflicting junit jar files in the past.
You can do menu Run > External tools > External tools, to create a configuration for your ant build -if not already done (usually the tool does it for you). Then go to the classpath tab and click on 'User Entries', and then the 'Add JARs...' button on the right. You select the junit jar file from xwiki/lib and all the rest will work without complaints.
This actually prevents the ant script from being executed correctly -
since
I don't (currently) run the targets that needs this I can get around
the
problem by simply commenting out the taskdef - however I'm a bit
stumped on
how to fix this properly (since the class in question should be
available).
Assuming building in eclipse is desired (and that the svn repository
should
contain the .classpath and other . files used by eclipse) shall I
simply
open a couple of jira's for these problems ?
There is a .classpath I believe but I could not find a way to modify it to make the ant build work. Tell me if you do ;-)
-- You receive this message as a subscriber of the [email protected] list. To unsubscribe: mailto:[email protected] For general help: mailto: [email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
-- You receive this message as a subscriber of the [email protected] list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
-----Original Message----- From: Marc Lijour [mailto:[email protected]] Sent: jeudi 4 janvier 2007 02:09 To: [email protected] Subject: Re: [xwiki-dev] Errors building in eclipse
Can you try the attached file?
- Menu File > Import - select Team > Team Project Set - point to the file (and eventually create a working set for it on the fly)
What should happen after that It should connect to the public svn account and check out the trunk of the xwiki project for you. Then do the ant configuration I talked about before, run ant and the project builds.
Content of the file (for the curious) $ cat xwiki.eclipse.teamprojectset.psf <?xml version="1.0" encoding="UTF-8"?> <psf version="2.0"> <provider id="org.tigris.subversion.subclipse.core.svnnature"> <project reference="0.9.3,svn://svn.forge.objectweb.org/svnroot/xwiki/xwiki/trun k,xwiki - trunk"/> </provider> </psf>
If it works and you think it is a good idea may be we could put it somewhere on the Eclipse build page for future users. WDYT?
+1 sure, go for it Thanks -Vincent
Really Sergiu... what's your config ? - I'm using Eclispe 3.2.1 with WTP 1.5, Subclipse under a 1.5 JDK running on Linux (kunbutu 6.0.6) - I was trying to compile the 10beta1, perhaps someone has fixed the .classpath file in trunk.... Cheers, Dan
On 03/01/07, Sergiu Dumitriu <[email protected]> wrote:
I'm using eclipse, and it's working for me, with the files from trunk.
On 1/3/07, Marc Lijour <[email protected] > wrote:
On Wednesday 03 January 2007 06:42, Dan Murphy wrote:
Hi, As per a page http://www.xwiki.org/xwiki/bin/view/Community/BuildingInEclipse there
are a
couple of issues if one tries to build XWiki inside eclipse.
Is it of interest to get this working properly ? if so there is a .classpath file that fixes some (trivial) problems (
http://www.xwiki.org/xwiki/bin/download/Community/BuildingInEclipse/.cl
assp
ath ).
The catus ant task def has some errors (inside eclipse anyway)
On Wednesday 03 January 2007 11:44, Dan Murphy wrote: -
seems
to
be due to the interaction between cactus-ant and junit the following warning is issued: A class needed by class org.apache.cactus.integration.ant.CactusTaskcannot be found: junit/framework/TestListener xwiki-trunk build.xml
line
211
You don't need to copy the junit jar file into ant/lib, although that is what the ant cactus task documentation is recommending. But I had problems with conflicting junit jar files in the past.
You can do menu Run > External tools > External tools, to create a configuration for your ant build -if not already done (usually the tool does it for you). Then go to the classpath tab and click on 'User Entries', and then the 'Add JARs...' button on the right. You select the junit jar file from xwiki/lib and all the rest will work without complaints.
This actually prevents the ant script from being executed correctly -
since
I don't (currently) run the targets that needs this I can get around
the
problem by simply commenting out the taskdef - however I'm a bit
stumped on
how to fix this properly (since the class in question should be
available).
Assuming building in eclipse is desired (and that the svn repository
should
contain the .classpath and other . files used by eclipse) shall I
simply
open a couple of jira's for these problems ?
There is a .classpath I believe but I could not find a way to modify it to make the ant build work. Tell me if you do ;-)
-- You receive this message as a subscriber of the [email protected] list. To unsubscribe: mailto:[email protected] For general help: mailto: [email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
-- You receive this message as a subscriber of the [email protected] list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
___________________________________________________________________________ D�couvrez une nouvelle fa�on d'obtenir des r�ponses � toutes vos questions ! Profitez des connaissances, des opinions et des exp�riences des internautes sur Yahoo! Questions/R�ponses http://fr.answers.yahoo.com
The .psf and ant stuff works for me, thanks Marc I took the liberty of attaching your psf and another psf for the 1.0 beta 1 tag & updating the page a bit (though I'm waiting for the server to come back online at the mo to check it's OK)... In the meantime, I was wondering if we should break it down into the following pages: Using Eclipse and XWiki <- Header page with links to .... Setting up eclipse ide for xwiki (installing subclipse, wtp etc) Checking out the source (either manually navigating svn or using psf files) Configuring build environment (ant config & .classpath) Building Using the Jetty Launcher plugin Using the Web Tools Project to deploy/debug XWiki (could be an interesting section since it opens up the how "best" to debug xwiki question) We could then add screenshots of the eclipse ui to make it a little clearer and easier to navigate... WDYT, worth the effort or are the textual instructions ok as they are ? Cheers, Dan PS. Looks like the .classpath is now correct in the trunk so it's only busted in the 1.0 beta 1 tag On 04/01/07, Vincent Massol <[email protected]> wrote:
-----Original Message----- From: Marc Lijour [mailto:[email protected]] Sent: jeudi 4 janvier 2007 02:09 To: [email protected] Subject: Re: [xwiki-dev] Errors building in eclipse
Can you try the attached file?
- Menu File > Import - select Team > Team Project Set - point to the file (and eventually create a working set for it on the fly)
What should happen after that It should connect to the public svn account and check out the trunk of the xwiki project for you. Then do the ant configuration I talked about before, run ant and the project builds.
Content of the file (for the curious) $ cat xwiki.eclipse.teamprojectset.psf <?xml version="1.0" encoding="UTF-8"?> <psf version="2.0"> <provider id="org.tigris.subversion.subclipse.core.svnnature"> <project reference="0.9.3,svn://svn.forge.objectweb.org/svnroot/xwiki/xwiki/trun k,xwiki - trunk"/> </provider> </psf>
If it works and you think it is a good idea may be we could put it somewhere on the Eclipse build page for future users. WDYT?
+1 sure, go for it
Thanks -Vincent
Really Sergiu... what's your config ? - I'm using Eclispe 3.2.1 with WTP 1.5, Subclipse under a 1.5 JDK running on Linux (kunbutu 6.0.6) - I was trying to compile the 10beta1, perhaps someone has fixed the .classpath file in trunk.... Cheers, Dan
On 03/01/07, Sergiu Dumitriu <[email protected]> wrote:
I'm using eclipse, and it's working for me, with the files from trunk.
On 1/3/07, Marc Lijour <[email protected] > wrote:
On Wednesday 03 January 2007 06:42, Dan Murphy wrote:
Hi, As per a page http://www.xwiki.org/xwiki/bin/view/Community/BuildingInEclipse there
are a
couple of issues if one tries to build XWiki inside eclipse.
Is it of interest to get this working properly ? if so there is a .classpath file that fixes some (trivial) problems (
http://www.xwiki.org/xwiki/bin/download/Community/BuildingInEclipse/.cl
assp
ath ).
The catus ant task def has some errors (inside eclipse anyway)
On Wednesday 03 January 2007 11:44, Dan Murphy wrote: -
seems
to
be due to the interaction between cactus-ant and junit the following warning is issued: A class needed by class org.apache.cactus.integration.ant.CactusTaskcannot be found: junit/framework/TestListener xwiki-trunk build.xml
line
211
You don't need to copy the junit jar file into ant/lib, although that is what the ant cactus task documentation is recommending. But I had problems with conflicting junit jar files in the past.
You can do menu Run > External tools > External tools, to create a configuration for your ant build -if not already done (usually the tool does it for you). Then go to the classpath tab and click on 'User Entries', and then the 'Add JARs...' button on the right. You select the junit jar file from xwiki/lib and all the rest will work without complaints.
This actually prevents the ant script from being executed correctly -
since
I don't (currently) run the targets that needs this I can get around
the
problem by simply commenting out the taskdef - however I'm a bit
stumped on
how to fix this properly (since the class in question should be
available).
Assuming building in eclipse is desired (and that the svn repository
should
contain the .classpath and other . files used by eclipse) shall I
simply
open a couple of jira's for these problems ?
There is a .classpath I believe but I could not find a way to modify it to make the ant build work. Tell me if you do ;-)
-- You receive this message as a subscriber of the [email protected] list. To unsubscribe: mailto:[email protected] For general help: mailto: [email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
-- You receive this message as a subscriber of the [email protected] list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
___________________________________________________________________________ Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses http://fr.answers.yahoo.com
-- You receive this message as a subscriber of the [email protected] list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
On Thursday 04 January 2007 06:43, Dan Murphy wrote:
The .psf and ant stuff works for me, thanks Marc
I took the liberty of attaching your psf and another psf for the 1.0 beta 1 tag & updating the page a bit (though I'm waiting for the server to come back online at the mo to check it's OK)... In the meantime, I was wondering if we should break it down into the following pages: Using Eclipse and XWiki <- Header page with links to .... Setting up eclipse ide for xwiki (installing subclipse, wtp etc) Checking out the source (either manually navigating svn or using psf files) Configuring build environment (ant config & .classpath) Building Using the Jetty Launcher plugin Using the Web Tools Project to deploy/debug XWiki (could be an interesting section since it opens up the how "best" to debug xwiki question)
We could then add screenshots of the eclipse ui to make it a little clearer and easier to navigate... WDYT, worth the effort or are the textual instructions ok as they are ?
I think it is a wonderful idea. May be we'll set a strand for other IDE pages to follow ;)
Cheers, Dan
PS. Looks like the .classpath is now correct in the trunk so it's only busted in the 1.0 beta 1 tag
On 04/01/07, Vincent Massol <[email protected]> wrote:
-----Original Message----- From: Marc Lijour [mailto:[email protected]] Sent: jeudi 4 janvier 2007 02:09 To: [email protected] Subject: Re: [xwiki-dev] Errors building in eclipse
Can you try the attached file?
- Menu File > Import - select Team > Team Project Set - point to the file (and eventually create a working set for it on the fly)
What should happen after that It should connect to the public svn account and check out the trunk of the xwiki project for you. Then do the ant configuration I talked about before, run ant and the project builds.
Content of the file (for the curious) $ cat xwiki.eclipse.teamprojectset.psf <?xml version="1.0" encoding="UTF-8"?> <psf version="2.0"> <provider id="org.tigris.subversion.subclipse.core.svnnature"> <project reference="0.9.3,svn://svn.forge.objectweb.org/svnroot/xwiki/xwiki/trun k,xwiki - trunk"/> </provider> </psf>
If it works and you think it is a good idea may be we could put it somewhere on the Eclipse build page for future users. WDYT?
+1 sure, go for it
Thanks -Vincent
On Wednesday 03 January 2007 11:44, Dan Murphy wrote:
Really Sergiu... what's your config ? - I'm using Eclispe 3.2.1 with
WTP
1.5, Subclipse under a 1.5 JDK running on Linux (kunbutu 6.0.6) - I
was
trying to compile the 10beta1, perhaps someone has fixed the
.classpath
file in trunk.... Cheers, Dan
On 03/01/07, Sergiu Dumitriu <[email protected]> wrote:
I'm using eclipse, and it's working for me, with the files from
trunk.
On 1/3/07, Marc Lijour <[email protected] > wrote:
On Wednesday 03 January 2007 06:42, Dan Murphy wrote: > Hi, > As per a page > http://www.xwiki.org/xwiki/bin/view/Community/BuildingInEclipse
there
are a
> couple of issues if one tries to build XWiki inside eclipse. > > Is it of interest to get this working properly ? if so there is
a
> .classpath file that fixes some (trivial) problems (
http://www.xwiki.org/xwiki/bin/download/Community/BuildingInEclipse/.cl
assp
>ath ). > > The catus ant task def has some errors (inside eclipse anyway)
-
> seems
to
> be due to the interaction between cactus-ant and junit the
following
> warning is issued: > A class needed by class > org.apache.cactus.integration.ant.CactusTaskcannot be found: > junit/framework/TestListener xwiki-trunk build.xml
line
> 211
You don't need to copy the junit jar file into ant/lib, although
that
is what the ant cactus task documentation is recommending. But I had
problems
with conflicting junit jar files in the past.
You can do menu Run > External tools > External tools, to create
a
configuration for your ant build -if not already done (usually
the tool
does it for you). Then go to the classpath tab and click on 'User
Entries',
and then the 'Add JARs...' button on the right. You select the junit
jar
file from xwiki/lib and all the rest will work without complaints.
> This actually prevents the ant script from being executed
correctly -
since
> I don't (currently) run the targets that needs this I can get
around
the
> problem by simply commenting out the taskdef - however I'm a
bit
stumped on
> how to fix this properly (since the class in question should be
available).
> Assuming building in eclipse is desired (and that the svn
repository
should
> contain the .classpath and other . files used by eclipse) shall
I
simply
> open a couple of jira's for these problems ?
There is a .classpath I believe but I could not find a way to
modify it
to make the ant build work. Tell me if you do ;-)
-- You receive this message as a subscriber of the [email protected] list. To unsubscribe: mailto:[email protected] For general help: mailto: [email protected]?subject=help ObjectWeb mailing lists service home page:
-- You receive this message as a subscriber of the [email protected] list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page:
_________________________________________________________________________ __ Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses http://fr.answers.yahoo.com
-- You receive this message as a subscriber of the [email protected] list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Cool, I'll have a shot at this over the weekend - girlfriend permitting ;) Dan On 04/01/07, Marc Lijour <[email protected]> wrote:
On Thursday 04 January 2007 06:43, Dan Murphy wrote:
The .psf and ant stuff works for me, thanks Marc
I took the liberty of attaching your psf and another psf for the 1.0beta 1 tag & updating the page a bit (though I'm waiting for the server to come back online at the mo to check it's OK)... In the meantime, I was wondering if we should break it down into the following pages: Using Eclipse and XWiki <- Header page with links to .... Setting up eclipse ide for xwiki (installing subclipse, wtp etc) Checking out the source (either manually navigating svn or using psf files) Configuring build environment (ant config & .classpath) Building Using the Jetty Launcher plugin Using the Web Tools Project to deploy/debug XWiki (could be an interesting section since it opens up the how "best" to debug xwiki question)
We could then add screenshots of the eclipse ui to make it a little clearer and easier to navigate... WDYT, worth the effort or are the textual instructions ok as they are ?
I think it is a wonderful idea. May be we'll set a strand for other IDE pages to follow ;)
Cheers, Dan
PS. Looks like the .classpath is now correct in the trunk so it's only busted in the 1.0 beta 1 tag
On 04/01/07, Vincent Massol <[email protected]> wrote:
-----Original Message----- From: Marc Lijour [mailto:[email protected]] Sent: jeudi 4 janvier 2007 02:09 To: [email protected] Subject: Re: [xwiki-dev] Errors building in eclipse
Can you try the attached file?
- Menu File > Import - select Team > Team Project Set - point to the file (and eventually create a working set for it on
the
fly)
What should happen after that It should connect to the public svn account and check out the trunk of the xwiki project for you. Then do the ant configuration I talked about before, run ant and the project builds.
Content of the file (for the curious) $ cat xwiki.eclipse.teamprojectset.psf <?xml version="1.0" encoding="UTF-8"?> <psf version="2.0"> <provider id="org.tigris.subversion.subclipse.core.svnnature "> <project reference="0.9.3 ,svn://svn.forge.objectweb.org/svnroot/xwiki/xwiki/trun k,xwiki - trunk"/> </provider> </psf>
If it works and you think it is a good idea may be we could put it somewhere on the Eclipse build page for future users. WDYT?
+1 sure, go for it
Thanks -Vincent
On Wednesday 03 January 2007 11:44, Dan Murphy wrote:
Really Sergiu... what's your config ? - I'm using Eclispe 3.2.1with
WTP
1.5, Subclipse under a 1.5 JDK running on Linux (kunbutu 6.0.6) - I
was
trying to compile the 10beta1, perhaps someone has fixed the
.classpath
file in trunk.... Cheers, Dan
On 03/01/07, Sergiu Dumitriu <[email protected]> wrote:
I'm using eclipse, and it's working for me, with the files from
trunk.
On 1/3/07, Marc Lijour <[email protected] > wrote: > On Wednesday 03 January 2007 06:42, Dan Murphy wrote: > > Hi, > > As per a page > > http://www.xwiki.org/xwiki/bin/view/Community/BuildingInEclipse
there
> are a > > > couple of issues if one tries to build XWiki inside eclipse. > > > > Is it of interest to get this working properly ? if so there is
a
> > .classpath file that fixes some (trivial) problems (
http://www.xwiki.org/xwiki/bin/download/Community/BuildingInEclipse/.cl
>assp > > >ath ). > > > > The catus ant task def has some errors (inside eclipse
anyway)
-
> > seems > > to > > > be due to the interaction between cactus-ant and junit the
following
> > warning is issued: > > A class needed by class > > org.apache.cactus.integration.ant.CactusTaskcannot be found: > > junit/framework/TestListener xwiki-trunk build.xml > > line > > > 211 > > You don't need to copy the junit jar file into ant/lib,
although
that
> is what > the ant cactus task documentation is recommending. But I had
problems
> with > conflicting junit jar files in the past. > > You can do menu Run > External tools > External tools, to
create
a
> configuration for your ant build -if not already done (usually
the tool
> does > it for you). Then go to the classpath tab and click on 'User
Entries',
> and > then the 'Add JARs...' button on the right. You select the
junit
jar
> file > from xwiki/lib and all the rest will work without complaints. > > > This actually prevents the ant script from being executed
correctly -
> since > > > I don't (currently) run the targets that needs this I can
get
around
> the > > > problem by simply commenting out the taskdef - however I'm a
bit
> stumped on > > > how to fix this properly (since the class in question should
be
> > available). > > > Assuming building in eclipse is desired (and that the svn
repository
> should > > > contain the .classpath and other . files used by eclipse) shall
I
> simply > > > open a couple of jira's for these problems ? > > There is a .classpath I believe but I could not find a way to
modify it
> to > make the ant build work. Tell me if you do ;-) > > > > > -- > You receive this message as a subscriber of the > [email protected] list. To unsubscribe: > mailto:[email protected] > For general help: mailto: [email protected]?subject=help > ObjectWeb mailing lists service home page:
-- You receive this message as a subscriber of the [email protected] list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page:
__ Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses http://fr.answers.yahoo.com
-- You receive this message as a subscriber of the [email protected] list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
-- You receive this message as a subscriber of the [email protected] list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Hi Marc, The .classpath and build.xml should are more or less independent... Having the .classpath correct means I can rely on Eclipse's automatic build to compile the classes without needing to run the ant script. As I suspect you already know, per the smiley, the .classpath doesn't effect ant (AFAIK anyway) Thanks for the tips on the junit and ant - I'll try this as I'm sure one day I'll need to run the unit tests :) Cheers, Dan On 03/01/07, Marc Lijour <[email protected]> wrote:
On Wednesday 03 January 2007 06:42, Dan Murphy wrote:
Hi, As per a page http://www.xwiki.org/xwiki/bin/view/Community/BuildingInEclipse there are a couple of issues if one tries to build XWiki inside eclipse.
Is it of interest to get this working properly ? if so there is a .classpath file that fixes some (trivial) problems (
http://www.xwiki.org/xwiki/bin/download/Community/BuildingInEclipse/.classp
ath ).
The catus ant task def has some errors (inside eclipse anyway) - seems to be due to the interaction between cactus-ant and junit the following warning is issued: A class needed by class org.apache.cactus.integration.ant.CactusTaskcannot be found: junit/framework/TestListener xwiki-trunk build.xml line 211
You don't need to copy the junit jar file into ant/lib, although that is what the ant cactus task documentation is recommending. But I had problems with conflicting junit jar files in the past.
You can do menu Run > External tools > External tools, to create a configuration for your ant build -if not already done (usually the tool does it for you). Then go to the classpath tab and click on 'User Entries', and then the 'Add JARs...' button on the right. You select the junit jar file from xwiki/lib and all the rest will work without complaints.
This actually prevents the ant script from being executed correctly - since I don't (currently) run the targets that needs this I can get around the problem by simply commenting out the taskdef - however I'm a bit stumped on how to fix this properly (since the class in question should be available).
Assuming building in eclipse is desired (and that the svn repository should contain the .classpath and other . files used by eclipse) shall I simply open a couple of jira's for these problems ?
There is a .classpath I believe but I could not find a way to modify it to make the ant build work. Tell me if you do ;-)
-- You receive this message as a subscriber of the [email protected] list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
participants (4)
-
Dan Murphy -
Marc Lijour -
Sergiu Dumitriu -
Vincent Massol