Thanks so much for developing an SVN plugin! I've been trying to use it but have been running into various problems and would greatly appreciate any help you can offer. In particular, the releng script is able to fetch my plugin's feature project from SVN but not the plugin project (the ant task error message is listed below). I can successfully fetch the plugin project by concatenating the svnRepositoryURL+"/"+preTagPath+"/"+tag+"/"+postTagPath pieces of the plugin@ entry in my map file and passing them to an SVN command-line client. Interestingly, the releng script also appears to be attempting to fetch a "bundle" type but I have no such type declared in my map file. Finally, as you can see below, the releng "buildScript" task is unable to find some plug-in dependencies that are present under my "base/eclipse" directory (copied from "org.eclipse.releng.basebuilder").
Thank you very much in advance for any insight you can offer into these problems!
------ excerpt from ant output follows -------
fetchElement:
[eclipse.fetch] Missing directory entry: plugin@net.test.testplugin.
[eclipse.fetch] Missing directory entry: bundle@net.test.testplugin.
BUILD FAILED
C:\svn\net.test.builder\build.xml:48: The following error occurred while executing this line:
C:\svn\org.eclipse.releng.basebuilder\plugins\org.eclipse.pde.build\scripts\build.xml:24: The following error occurred while executing this line:
C:\svn\org.eclipse.releng.basebuilder\plugins\org.eclipse.pde.build\scripts\build.xml:64: The following error occurred while executing this line:
C:\svn\net.test.builder\pde-build\customTargets.xml:10: The following error occurred while executing this line:
C:\svn\net.test.builder\pde-build\allElements.xml:12: The following error occurred while executing this line:
C:\svn\org.eclipse.releng.basebuilder\plugins\org.eclipse.pde.build\scripts\genericTargets.xml:82: Unable to find feature: net.test.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It is hard to see what is going wrong with your build.
Do the retreive.xml and fetch_*.xml files get generated correctly?
Can you please post these files and the directory text.
Chris
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thank you very much for your reply! I'm sorry but I couldn't find a "retrieve.xml" file under my "tempbuild" directory--am I looking in the wrong place or for the wrong file name? My fetch_*.xml file is "complete" but the "fetch.plugins" target tag is suspiciously empty. I've included that file as well as my "directory.txt" file below.
Thanks again for your kind help!
------ contents of fetch_net.test.xml --------
<?xml version="1.0" encoding="UTF-8"?>
I think you might have a problem with your Feature.xml. Check that you can export the feature from within the ide and check the resulting zip contains the plugin.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for your reply. My "feature.xml" is basically equivalent to the SVN "feature.xml" and when I use the "Export Wizard" the generated ZIP file contains the plugin JAR and feature.xml files as expected. Any other things I should check?
Thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Does your tempbuild directory contain a features and plugins directory with your feature.xml and plugin.xml inside then?
One thing that doesn't look quite right is the fetch script, it seems like it is looking in the wrong folder for feature.xml. It could be a bug in the fetch script generator. Try changing the feature and plugin name to the same as the folders they reside in.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks Chris! I changed the "id" in my map file to match the feature and plugin folder path and now both the feature and plugin files are being fetched correctly (I also changed the "id" in my allElements.xml file accordingly). The build now als completes successfully although I do see some worrisome error messages during the "generateScript" part of the build:
Oh--I just noticed that I see the same messages building svn-pde-build itself, so I'll assume it's okay to ignore these. The feature ZIP file is being generated correctly anyway.
Thanks so much again for your help!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
pde-build plugin Team:
Thanks so much for developing an SVN plugin! I've been trying to use it but have been running into various problems and would greatly appreciate any help you can offer. In particular, the releng script is able to fetch my plugin's feature project from SVN but not the plugin project (the ant task error message is listed below). I can successfully fetch the plugin project by concatenating the svnRepositoryURL+"/"+preTagPath+"/"+tag+"/"+postTagPath pieces of the plugin@ entry in my map file and passing them to an SVN command-line client. Interestingly, the releng script also appears to be attempting to fetch a "bundle" type but I have no such type declared in my map file. Finally, as you can see below, the releng "buildScript" task is unable to find some plug-in dependencies that are present under my "base/eclipse" directory (copied from "org.eclipse.releng.basebuilder").
Thank you very much in advance for any insight you can offer into these problems!
------ excerpt from ant output follows -------
fetchElement:
[eclipse.fetch] Missing directory entry: plugin@net.test.testplugin.
[eclipse.fetch] Missing directory entry: bundle@net.test.testplugin.
fetch:
fetch.element:
FetchFromSVN:
fetch.plugins:
fetch.recursively:
postFetch:
generate:
preGenerate:
allElements:
allElementsDelegator:
init:
generateScript:
[eclipse.buildScript] Some inter-plug-in dependencies have not been satisfied.
[eclipse.buildScript] Bundle org.eclipse.pde.core:
[eclipse.buildScript] Missing required plug-in org.eclipse.jdt.core_[3.2.0,4.0.0).
[eclipse.buildScript] Missing required plug-in org.eclipse.jdt.launching_[3.2.0,4.0.0).
[eclipse.buildScript] Bundle org.eclipse.pde.junit.runtime:
[eclipse.buildScript] Missing required plug-in org.eclipse.jdt.junit.runtime_[3.2.0,4.0.0).
[eclipse.buildScript] Missing required plug-in org.junit_[3.8.1,3.9.0).
[eclipse.buildScript] Bundle org.eclipse.pde.ui:
[eclipse.buildScript] Missing required plug-in org.eclipse.pde.core_[3.2.0,4.0.0).
[eclipse.buildScript] Missing required plug-in org.eclipse.jdt.core_[3.2.0,4.0.0).
[eclipse.buildScript] Missing required plug-in org.eclipse.jdt.debug.ui_[3.2.0,4.0.0).
[eclipse.buildScript] Missing required plug-in org.eclipse.jdt.launching_[3.2.0,4.0.0).
[eclipse.buildScript] Missing required plug-in org.eclipse.jdt.ui_[3.2.0,4.0.0).
[eclipse.buildScript] Missing required plug-in org.eclipse.ant.ui_[3.1.0,4.0.0).
[eclipse.buildScript] Missing required plug-in org.eclipse.jdt.junit_[3.2.0,4.0.0).
[eclipse.buildScript] Unsatisfied import package org.eclipse.jdt.debug.core_0.0.0.
BUILD FAILED
C:\svn\net.test.builder\build.xml:48: The following error occurred while executing this line:
C:\svn\org.eclipse.releng.basebuilder\plugins\org.eclipse.pde.build\scripts\build.xml:24: The following error occurred while executing this line:
C:\svn\org.eclipse.releng.basebuilder\plugins\org.eclipse.pde.build\scripts\build.xml:64: The following error occurred while executing this line:
C:\svn\net.test.builder\pde-build\customTargets.xml:10: The following error occurred while executing this line:
C:\svn\net.test.builder\pde-build\allElements.xml:12: The following error occurred while executing this line:
C:\svn\org.eclipse.releng.basebuilder\plugins\org.eclipse.pde.build\scripts\genericTargets.xml:82: Unable to find feature: net.test.
It is hard to see what is going wrong with your build.
Do the retreive.xml and fetch_*.xml files get generated correctly?
Can you please post these files and the directory text.
Chris
Hi Chris,
Thank you very much for your reply! I'm sorry but I couldn't find a "retrieve.xml" file under my "tempbuild" directory--am I looking in the wrong place or for the wrong file name? My fetch_*.xml file is "complete" but the "fetch.plugins" target tag is suspiciously empty. I've included that file as well as my "directory.txt" file below.
Thanks again for your kind help!
------ contents of fetch_net.test.xml --------
<?xml version="1.0" encoding="UTF-8"?>
<!-- Fetch script for feature@net.test -->
<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/net.test/feature.xml" file="${buildDirectory}/features/net.test/feature.xml" />
<antcall target="FetchFromSVN">
<param name="fileToCheck" value="${buildDirectory}/features/net.test/feature.xml"/>
<param name="revision" value="HEAD"/>
<param name="elementName" value="net.test"/>
<param name="tagPath" value="/tags/v20070306"/>
<param name="destinationFolder" value="${buildDirectory}/features"/>
<param name="preTagPath" value="/source"/>
<param name="postTagPath" value="/features/net.test.testfeature"/>
<param name="svnRoot" value="svn://10.3.136.169/svnroot"/>
</antcall>
</target>
<target name="fetch.plugins" if="featureAndPlugins">
</target>
<target name="fetch.recursively" if="featuresRecursively">
</target>
<target name="FetchFromSVN" unless="${fileToCheck}">
<svn>
<export srcurl="${svnRoot}${preTagPath}${tagPath}${postTagPath}" destpath="${destinationFolder}/${elementName}" revision="${revision}" />
</svn>
</target>
</project>
------- contents of directory.txt -------
!*******************************************************************************************
! SVN map files format
! <type>@<id>=SVN,<tag>[:revision],<svnRepositoryURL>,<preTagPath>,<postTagPath>
!*******************************************************************************************
!*************** SVN PDE BUILD CONTRIBUTION **********************************************
feature@net.test=SVN,tags/v20070306,svn://10.3.136.169/svnroot,source,features/net.test.testfeature
plugin@net.test=SVN,tags/v20070306,svn://10.3.136.169/svnroot,source,plugins/net.test.testplugin
I think you might have a problem with your Feature.xml. Check that you can export the feature from within the ide and check the resulting zip contains the plugin.
Thanks for your reply. My "feature.xml" is basically equivalent to the SVN "feature.xml" and when I use the "Export Wizard" the generated ZIP file contains the plugin JAR and feature.xml files as expected. Any other things I should check?
Thanks!
Does your tempbuild directory contain a features and plugins directory with your feature.xml and plugin.xml inside then?
One thing that doesn't look quite right is the fetch script, it seems like it is looking in the wrong folder for feature.xml. It could be a bug in the fetch script generator. Try changing the feature and plugin name to the same as the folders they reside in.
Thanks Chris! I changed the "id" in my map file to match the feature and plugin folder path and now both the feature and plugin files are being fetched correctly (I also changed the "id" in my allElements.xml file accordingly). The build now als completes successfully although I do see some worrisome error messages during the "generateScript" part of the build:
generateScript:
[eclipse.buildScript] Some inter-plug-in dependencies have not been satisfied.
[eclipse.buildScript] Bundle org.eclipse.pde.core:
[eclipse.buildScript] Missing required plug-in org.eclipse.jdt.core_[3.2.0,4.0.0).
[eclipse.buildScript] Missing required plug-in org.eclipse.jdt.launching_[3.2.0,4.0.0).
[eclipse.buildScript] Bundle org.eclipse.pde.junit.runtime:
[eclipse.buildScript] Missing required plug-in org.eclipse.jdt.junit.runtime_[3.2.0,4.0.0).
[eclipse.buildScript] Missing required plug-in org.junit_[3.8.1,3.9.0).
[eclipse.buildScript] Bundle org.eclipse.pde.ui:
[eclipse.buildScript] Missing required plug-in org.eclipse.pde.core_[3.2.0,4.0.0).
[eclipse.buildScript] Missing required plug-in org.eclipse.jdt.core_[3.2.0,4.0.0).
[eclipse.buildScript] Missing required plug-in org.eclipse.jdt.debug.ui_[3.2.0,4.0.0).
[eclipse.buildScript] Missing required plug-in org.eclipse.jdt.launching_[3.2.0,4.0.0).
[eclipse.buildScript] Missing required plug-in org.eclipse.jdt.ui_[3.2.0,4.0.0).
[eclipse.buildScript] Missing required plug-in org.eclipse.ant.ui_[3.1.0,4.0.0).
[eclipse.buildScript] Missing required plug-in org.eclipse.jdt.junit_[3.2.0,4.0.0).
[eclipse.buildScript] Unsatisfied import package org.eclipse.jdt.debug.core_0.0.0.
Oh--I just noticed that I see the same messages building svn-pde-build itself, so I'll assume it's okay to ignore these. The feature ZIP file is being generated correctly anyway.
Thanks so much again for your help!