Specifying loadrule file in ANT xml
<xt:teamBuildProperty name="team.scm.componentLoadRules" value=""/>
com.ibm.team.repository.common.TeamRepositoryException: An invalid file path was specified: /_Loadrule/myloadrule.loadrule
/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.
Regards,
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:
Comments
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.
Fix for the export will go into 701 and be retrofit to 700 - component name is missing from value:
/component_name/project_name/folder_name/file_name
What do you see instead? Please provide screen shots if possible.
project_name/folder_name/file_name
Comments
Hi,