Menu

Error when using SVN with features

Help
2007-02-12
2013-04-24
  • Ulli Hafner

    Ulli Hafner - 2007-02-12

    We are about to migrate our sources from CVS to SVN. I tried the SVN build plug-in, and it works perfectly with all of our plug-ins. However, when using this plug-in to checkout a feature, then an error appears.

    Is another syntax required for features in the map file? Currently we use the following map file:

    feature@com.avaloq.adt=HEAD,:pserver:adt@tux18.sys.net:/cvs/cvspdt/adt,,com.avaloq.adt-feature/com.avaloq.adt
    #feature@com.avaloq.adt.sdk=HEAD,:pserver:adt@tux18.sys.net:/cvs/cvspdt/adt,,com.avaloq.adt-feature/com.avaloq.adt.sdk
    feature@com.avaloq.adt.sdk=SVN,trunk,svn://tux18.sys.net/adt,,com.avaloq.adt-feature/com.avaloq.adt.sdk
    plugin@com.avaloq.adt.core=SVN,trunk,svn://tux18.sys.net/adt,,

    The plugin entries are working as expected, the feature only works with CVS. The following error appears when SVN is activated for the feature and plugins:

         [exec] BUILD FAILED
         [exec] /home/adt/build/com.avaloq.adt.releng.adtbuilder/buildAll.xml:131: The following error occurred while executing this line:
         [exec] /home/adt/build/com.avaloq.adt.releng.adtbuilder/buildAll.xml:147: The following error occurred while executing this line:
         [exec] /home/adt/build/com.avaloq.adt.releng.adtbuilder/build.xml:25: The following error occurred while executing this line:
         [exec] /home/adt/build/org.eclipse.releng.basebuilder/plugins/org.eclipse.pde.build/scripts/build.xml:23: The following error occurred while executing this line:
         [exec] /home/adt/build/org.eclipse.releng.basebuilder/plugins/org.eclipse.pde.build/scripts/build.xml:51: The following error occurred while executing this line:
         [exec] /home/adt/build/com.avaloq.adt.releng.adtbuilder/sdk/customTargets.xml:7: The following error occurred while executing this line:
         [exec] /home/adt/build/org.eclipse.releng.basebuilder/plugins/org.eclipse.pde.build/scripts/genericTargets.xml:41: Feature com.avaloq.adt.sdk may have not been fetched correctly, check your map files.

     
    • Chris Vines

      Chris Vines - 2007-02-13

      Hi,

      From looking at your map file entries for subversion it looks like you have left the <preTagPath> parameter empty.

      <feature|plugin>@<id>=SVN,<tag>[:revision],<svnRepositoryURL>,<preTagPath>,<postTagPath>

      In version 1.0.0 of svn-pde-build this causes a problem as it resolves this parameter to the string "/null".
      The workaround for this is to move the last segment of the repository path to the preTagPath.

      so your map entry would be:
      feature@com.avaloq.adt.sdk=SVN,trunk,svn://tux18.sys.net,adt,com.avaloq.adt-feature/com.avaloq.adt.sdk

      This problem has been fixed in version 1.0.1 which will be released in the next couple of days.

      Regards
      Chris

       
    • Ulli Hafner

      Ulli Hafner - 2007-02-13

      Hi Chris,

      thanks for the help. This was actually the problem, now everything works!

      Best regards, Ulli

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.