Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

What is this exception for component load rules file during a build?

I have a component named MyComponent with the following folder structure:

/MyProject
/MyProject/TestFile.txt
/MyProject/Folder1
/MyProject/Folder1/loadrules.txt
/MyProject/Folder1/TestFile2.txt

And this is what I have in my loadrules.txt file:

versionableName=/MyProject/TestFile.txt

I've specified the loadrules.txt file in my build definition for this component, but when the build runs, I'm getting the following exception when it tries to fetch the files:

com.ibm.team.repository.common.TeamRepositoryException: Unexpected line "versionableName=/MyProject/TestFile.txt" encountered in build load rules for component "MyComponent"
at com.ibm.team.filesystem.client.internal.load.LoadRule.getRules(LoadRule.java:176)
at com.ibm.team.filesystem.client.internal.load.LoadRule.addLoadRules(LoadRule.java:101)
at com.ibm.team.build.internal.scm.ComponentLoadRules.getLoadRules(ComponentLoadRules.java:134)
at com.ibm.team.build.internal.engine.JazzScmPreBuildParticipant.preBuild(JazzScmPreBuildParticipant.java:235)
at com.ibm.team.build.internal.engine.BuildLoop.invokePreBuildParticipants(BuildLoop.java:844)
at com.ibm.team.build.internal.engine.BuildLoop$2.run(BuildLoop.java:650)
at java.lang.Thread.run(Thread.java:662)

Any idea what I'm doing wrong? I've tried following the example here:
but I can't figure why it's not working for me.

EDIT: This is in RTC 3.

0 votes

Comments

Also, it seems like regardless of what test I put in the loadrules.txt file (empty string, random text, etc.), I still get this "Unexpected line" exception for the first line of text I have in the file. I'm not sure if that helps, though.



2 answers

Permanent link
 Looks like it was an encoding issue. I had originally used Visual Studio to create the load rules file. Recreating it in Notepad++ solved this issue.

0 votes


Permanent link
That's strange.  It may be that Visual Studio is saving it as a unicode file, with a byte order prefix.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,014
× 562

Question asked: Aug 24 '12, 2:31 p.m.

Question was seen: 5,979 times

Last updated: Aug 31 '12, 4:00 p.m.

Confirmation Cancel Confirm