Menu

CVS FetchScript not well formed

Help
pch
2008-07-01
2013-04-29
  • pch

    pch - 2008-07-01

    I cannot fetch features from CVS the generated script is not well formed

    <?xml version="1.0" encoding="UTF-8"?>

    <!-- Fetch script for feature@com.cmp.client.main.features -->

    <project name="FetchScript" default="fetch">
        <property name="quiet" value="true"/>

        <target name="fetch">
            <antcall target="fetch.element"/>
            <antcall target="fetch.plugins"/>
            <antcall target="fetch.recursively"/>
        </target>
        <target name="fetch.element" if="featureOnly">
            <available property="${buildDirectory}/features/com.cmp.client.main.features/feature.xml" file="${buildDirectory}/features/com.cmp.client.main.features/feature.xml"        />
            <antcall target="FetchFromCVS">
                <param name="elementName" value="com.cmp.client.main.features"/>
                <param name="quiet" value="${cvs.quiet}"/>
                <param name="cvsRoot" value=":pserver:xx@cvs.xxx.be:/usr/local/cvsroot"/>
                <param name="fileToCheck" value="${buildDirectory}/features/com.cmp.client.main.features/feature.xml"/>
                <param name="tag" value="HEAD"/>
                <param name="destinationFolder" value="${buildDirectory}/features"/>
                <param name="module" value="dis-project/client/features/com.cmp.client.main.features"/>
            </antcall>
        </target>
        <target name="fetch.plugins" if="featureAndPlugins">

    this is the last line.... the file to be well formed is missing  </target></project> tags.

    the plugin's builder version is 0.6 my env mac os x eclipse 3.3.2

     
    • Markus Barchfeld

      I guess the generation of the build script failed in the middle of the file. Does your .log file ($buildDirectory/workspace/.metadata/.log) contain any error messages?

       
    • pch

      pch - 2008-07-23

      Yes there are errors:

      !ENTRY org.eclipse.osgi 4 0 2008-07-23 10:49:12.562
      !MESSAGE Application error
      !STACK 1
      java.lang.reflect.InvocationTargetException
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:585)
          at org.eclipse.ant.core.AntRunner.run(AntRunner.java:512)
          at org.eclipse.ant.core.AntRunner.start(AntRunner.java:599)
          at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
          at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
          at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
          at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
          at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:585)
          at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
          at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
          at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
          at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
      Caused by: /.../Applications/eclipse-3.3.2/eclipse-base/plugins/org.eclipse.pde.build_3.3.2.v20071019/scripts/build.xml:23: The following error occurred while executing this line:
      /.../Applications/eclipse-3.3.2/eclipse-base/plugins/org.eclipse.pde.build_3.3.2.v20071019/scripts/build.xml:51: The following error occurred while executing this line:
      /../com.medshare.builder/build-files/customTargets.xml:43: The following error occurred while executing this line:
      /../com.medshare.builder/build-files/allElements.xml:4: The following error occurred while executing this line:
      /../com.medshare.builder/build-files/allElements.xml:9: The following error occurred while executing this line:
      /..//Applications/eclipse-3.3.2/eclipse-base/plugins/org.eclipse.pde.build_3.3.2.v20071019/scripts/genericTargets.xml:42: Could not retrieve feature.xml or build.properties for feature com.medshare.core.features.

      but i've no idea on what is going wrong

       
      • Markus Barchfeld

        These PDE Build error messages are hardly readable indeed.

        I would guess that com.medshare.core.features was not fetched correctly. Check ${buildDirectory}/features/com.medshare.core.features. If you are using CVS or subversion, there might have been an error during checkout. You can try "Copy from Workspace" for testing purposes, too.

         
        • pch

          pch - 2008-07-23

          2) copy from workspace is working but im setting up a night build (using maven and hudson) and i cannot use this options.

          1) the main problems is that the feature is not fetched from CVS beacause the ant script ${buildDirectory}/fetch_${id}.xml" medshare in this case
          is not well formed and missing the closing tags... ;(

          do you know when and where  this script is generated ?

           
          • Markus Barchfeld

            A citation from the PDE Build article:

            "The fetch phase starts with the creation of an ant script called retrieve.xml, which contains a build target for fetching the feature.xml. Then this target will be executed and the information about the provided plug-ins of the feature is read in. For every provided plug-in a corresponding build target will be added to the fetch build script. Both files (retrieve.xml and feature.xml) are only temporary. They will be deleted after the fetch build script has been generated."

            Does the retrieve.xml file still exist in your buildDirectory?

             
    • pch

      pch - 2008-07-23

      I discovered somenthing wired if i choose copy from workspace the Fetch script for feature@com.medshare.core.features(fetch_com.medshare.core.features.xml) is well formed but
      if  i choose "Use CVS" then save ->generate build files -> build Head then
      the new file fetch_com.medshare.core.features.xml is missing the closing tags...;(

       

Log in to post a comment.

MongoDB Logo MongoDB