Specifying loadrule file in ANT xml
![]()
Dear Community,
I am trying to create build definitions using Ant task, but I fail to specify the loadrule for the workspace in the Ant xml file.
Build toolkit 6.0.6 is used, I took one of the example xml files come along with the btk installation (CreateBuildDefinitionAnt.xml). Everything is all right (the build definition gets generated, workspace gets assigned), until I set the value property of below line:
My loadrule files are located in the component "_Loadrules", there are no subfolders within the component, so I set the value to "/_Loadrules/myloadrule.loadrule".
The exception which is thrown in return:
com.ibm.team.repository.common.TeamRepositoryException: An invalid file path was specified: /_Loadrule/myloadrule.loadrule
Based on the documentation it should have this format:
/ComponentName/ProjectName/RulesFolder/RulesFile.loadrules.
What does ProjectName mean here? The project area in which my stream is located?
If I set the value so, "project not found" error is thrown.
Also it is very strange, that when I make an export of a proper and working build definition
,
only the .loadrule file is printed as the value, no project or component names are displayed in the generated xml.
And the so generated file can't be used for build definition generation later on, as it fails due to the same wrong file path.
Has anyone experienced the same phenomenon? Any advice is appreciated.
Regards,
Viktor
|
3 answers
![]() The ProjectName is the name of the project as seen under Project Explorer in eclipse. Each item in SCM belongs to a Component and Project, and may belong to 1-n folders. Find the loadrules file in Eclipse, right-click on the file, choose Properties, and the Jazz Source Control tab. You'll get a panel that looks something like this:
there is a line where the component name is specified toward the bottom. The rest of the path can be copied from Remote path.
If you're still having trouble, copy your jazz source control panel here so that I can see what it looks like.
I see the problem with the export, I'll fix that.
Comments ![]() FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
To clarify a bit, note that although a file in RTC/EWM SCM has to belong to a component, it does not have to belong to a project. Also note that a "project" here is an Eclipse project, not an RTC/EWM project area. It is easiest to view and manipulate files in Eclipse if they are in an Eclipse project area, so it is best to put files under an Eclipse project if you are going to work with the files in Eclipse. |
|