facebook

xDoclet and linked-resource directories

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #199046 Reply

    Erez
    Member

    Hi,

    I am trying to run xDoclet and it fails saying it cannot find the ‘src’ directory. My Application consists of EAR, EJB and WEB projects which I created using the wizards and customized to fit better my source directory structure to overcome the problem of dependent projects/packages.

    The file directory tree is as follows:

    
    - workspace
       - src
             - services (session EJBs)
             - domain (entity EJBs)
             - common (simple java classes contains sub-packages)
             - web (root dir for the struts actions, etc..)
             - util (java utility classes)
             - delegate (business logic delegate classes)
       - Logic (The EJB Project)
              - META-INF
                   MANIFEST.MF
    
       - Web (The WEB Project)
       - APP (The EAR Project)
    

    Both the WEB and My Logic (EJB Project) have instead of physical src sub-dir a linked-resource ‘src’ directory pointing to the real top-level source directory.

    All that to ask a small simple question: Does xDoclet can handle this linked-resource directory?? I hope It’s only me doing a stupid mistake of configuration 🙂

    I am using myEclipse 3.6.2

    LOG I got:

    [ejbdoclet] C:\dev\tutim\Logic\src not found.
    [ejbdoclet] at org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileSet.java:369)
    [ejbdoclet] at xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:88)
    [ejbdoclet] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193)
    [ejbdoclet] at org.apache.tools.ant.Task.perform(Task.java:341)
    [ejbdoclet] at org.apache.tools.ant.Target.execute(Target.java:309)
    [ejbdoclet] at org.apache.tools.ant.Target.performTasks(Target.java:336)
    [ejbdoclet] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
    [ejbdoclet] at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
    [ejbdoclet] at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:578)
    [ejbdoclet] at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:376)
    [ejbdoclet] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [ejbdoclet] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [ejbdoclet] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [ejbdoclet] at java.lang.reflect.Method.invoke(Method.java:324)
    [ejbdoclet] at org.eclipse.ant.core.AntRunner.run(AntRunner.java:341)
    [ejbdoclet] at org.eclipse.ant.ui.internal.launchConfigurations.AntLaunchDelegate.launch(AntLaunchDelegate.java:225)
    [ejbdoclet] at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:156)
    [ejbdoclet] at org.jboss.ide.eclipse.xdoclet.run.ui.actions.XDocletRunAction$1.run(XDocletRunAction.java:151)
    [ejbdoclet] at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)

    Thanks a lot,

    Erez

    #199049

    Scott Anderson
    Participant

    Erez,

    All that to ask a small simple question: Does xDoclet can handle this linked-resource directory?? I hope It’s only me doing a stupid mistake of configuration

    We’ll have to investigate it internally for a specific answer, but I don’t think the XDoclet system supports links like this. I’ve added it as an issue in our internal tracking system so we can address it in a subsequent service release. Thanks for bringing it to our attention.

    –Scott
    MyEclipse Support

    #199053

    Erez
    Member

    By the way, a way to get around it is to direct xDoclet to relative pathes like ‘destDir = ..\src’ and ‘fileset=”..\src”. I am currently checking it but it looks working at least it started generating the files.
    I guess persistency pays after all.. (but the price.. 🙂

    Erez

    #199055

    Scott Anderson
    Participant

    Erez,

    I guess persistency pays after all.. (but the price.. 🙂

    It does. Now how about recouping your investigation investment by writing a tutorial and submitting it as an entry into our Contest? See the News & Updates page for more details.

    –Scott
    MyEclipse Support

    #199056

    Erez
    Member

    I thought about it but I saw that it goes only for 2.6.2, is this true?

    Erez

    #199064

    Scott Anderson
    Participant

    Erez,

    As long as it also works in 2.6.2, that’s sufficient. 3.6.2 has the same feature set so it should, unless you use and Eclipse 3.0-specfic functionality.

    –Scott
    MyEclipse Support

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: xDoclet and linked-resource directories

You must be logged in to post in the forum log in