Bugs item #855321, was opened at 2003-12-06 15:09
Message generated for change (Comment added) made by nilsson1
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=855321&group_id=22866

Category: JBoss-IDE
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Dmitry Sklyut (sklyutd)
Assigned to: Laurent Etiemble (letiemble)
Summary: XDoclet generation fails.  j2ee jar is not found

Initial Comment:
If the project has a jar linked to it from another
project in the workspace, the classpath for the XDoclet
is generated incorrectly.

Tested with 1.2.1 and 1.2.2 of JBOSS-IDE, Eclipse
2.1.1, Windows 2000 SP4, JDK1.4.2

Example:
ejb
-> Linked j2ee.jar from thirdparty

third-party
-> lib/j2ee.jar

Generated classpath look like this:
<pathelement location="/third-party/lib/j2ee-apis.jar"/>

On the file system:
projects/
           ejb/
           third-party/
                        lib/


so the path should look:
<pathelement location="../third-party/lib/j2ee-apis.jar"/>

or should expand to the absolute to the third-party.

Dmitry

----------------------------------------------------------------------

Comment By: Anders Nilsson (nilsson1)
Date: 2004-02-09 13:52

Message:
Logged In: YES 
user_id=733154

I saw the same error using JBOSS-IDE 1.2.2, Eclipse 2.1.2, 
Win XP SP1, JDK 1.4.1_02.

Below is a patch that fixes the problem, at least for how I use 
the plugin.

Regards

Anders

-------------------------------

Index: ProjectUtil.java
==============================================
=====================
RCS 
file: /cvsroot/jboss/contrib/jbosside/org.jboss.ide.eclipse.xdocl
et.run/src/org/jboss/ide/eclipse/xdoclet/run/util/ProjectUtil.jav
a,v
retrieving revision 1.4
diff -u -r1.4 ProjectUtil.java
--- ProjectUtil.java    29 Jul 2003 21:12:44 -0000      1.4
+++ ProjectUtil.java    9 Feb 2004 13:48:36 -0000
@@ -13,6 +13,7 @@
 import org.eclipse.jdt.core.IClasspathEntry;
 import org.eclipse.jdt.core.IJavaProject;
 import org.eclipse.jdt.core.JavaCore;
+import org.jboss.ide.eclipse.xdoclet.run.XDocletRunPlugin;
 
 
 /**
@@ -48,6 +49,9 @@
                 if (root.isPrefixOf(libpath))
                 {
                    lib = project.getProject().getLocation().toString
() + "/" + libpath.removeFirstSegments(1).toString();//$NON-
NLS-1$
+                }
+                else if (XDocletRunPlugin.getWorkspace().getRoot
().exists(entry.getPath())) {
+                                       lib = ".." + 
entry.getPath().toString();
                 }
                 else
                 {


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=855321&group_id=22866


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to