StarTeam EOL

Is there any way to configure TeamCity to NOT do an automatic EOL conversion when checking out changes under StarTeam? We have numerous unix scripts that are being converted to CRLF when checked out for our build. Thanks!

Rick

12 comments

Hello Rick,

In fact EOL conversion is done in a layer higher than StarTeam integration.
Could you please give me more details related to your TeamCity and project
configuration.
Is your agent running under Windows or Unix? If it's Windows why your Unix
scripts are so important?

As a quick solution you may try to change storage type for your scripts to
make them binary in the StarTeam repository. I don't know the exact way of
doing this but I've heard this is possible.

Is there any way to configure TeamCity to NOT do an automatic EOL
conversion when checking out changes under StarTeam? We have numerous
unix scripts that are being converted to CRLF when checked out for our
build. Thanks!

Rick

--
Sergey Anchipolevsky
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


0

The agents are Windows but we are including scripts that go into a platform independent installer. This is why we need the unix scripts to be formatted correctly. I will check into the marking files as binary.

Rick

0

Also, it looks like to convert these files, I will have to write some java code against their SDK so this is not a viable option. Is there any way to do this through TeamCity?

Rick

0

Hello Rick,

OK. Now it's clear.
Normally TeamCity converts EOL characters to the format native to the agent's
OS.

We'll think about a solution to your problem.

Also as a possibly quick solution consider introducing some preprocessing
during a build. There are a lot of tools converting EOL characters in both
directions.

The agents are Windows but we are including scripts that go into a
platform independent installer. This is why we need the unix scripts
to be formatted correctly. I will check into the marking files as
binary.

Rick

--
Sergey Anchipolevsky
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


0

Hello Rick,

If you mean changing the storage type - no, TeamCity doesn't provide such
a functionality.

Also, it looks like to convert these files, I will have to write some
java code against their SDK so this is not a viable option. Is there
any way to do this through TeamCity?

Rick

--
Sergey Anchipolevsky
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


0

Hello Rick,

StarTeam folders have the property "EOL conversion". TeamCity currently ignores
this setting.
If TeamCity uses it to proper handling EOL, will it suit your needs?

The agents are Windows but we are including scripts that go into a
platform independent installer. This is why we need the unix scripts
to be formatted correctly. I will check into the marking files as
binary.

Rick

--
Sergey Anchipolevsky
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


0

Where do you see this property for EOL conversion? The only place I have seen anything like this is in the client configuration, which is not used since TeamCity uses the SDK for its interface to StarTeam. It seems like the best solution is to allow the user to turn off the conversion to the agent's native EOL. It would be nice if this option was added to the VCS configuration screen. It seems like this is a relative destructive default behavior. It seems that the default should not be to change files, but that is just my opinion. We have implemented the fixcrlf task in ant, but this is not optimal since we have both text files and binary files in the directories and have to explicitly set which files/directories we want to convert. Thanks!

Rick

0

Hello Rick,

I mean EOL conversion in the native StarTeam client. I didn't say this is
implemented in TeamCity.

If this folder property is suitable for you, we can implement it's support
in TeamCity. SDK allows accessing this setting.

An option to not convert EOL at all is too global, I think.
Since StarTeam supports storing various types of EOL, I'd prefer using this
local setting.

So my question is -- would this solution satisfy your needs?

The use case would be like this.
In the native StarTeam client you mark the required files to be stored with
LF as EOL, and TeamCity always checks them out with LF regardless of the
agent's platform.

Is it OK?

Where do you see this property for EOL conversion? The only place I
have seen anything like this is in the client configuration, which is
not used since TeamCity uses the SDK for its interface to StarTeam. It
seems like the best solution is to allow the user to turn off the
conversion to the agent's native EOL. It would be nice if this option
was added to the VCS configuration screen. It seems like this is a
relative destructive default behavior. It seems that the default
should not be to change files, but that is just my opinion. We have
implemented the fixcrlf task in ant, but this is not optimal since we
have both text files and binary files in the directories and have to
explicitly set which files/directories we want to convert. Thanks!

Rick

--
Sergey Anchipolevsky
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


0

The only problem with this I could see is that some folders may hold both text and binary files, but I don't think it is a problem for us. I am not familiar with this StarTeam flag you mention. I haven't seen any properties like this on folders in StarTeam looking at the Cross Platform Client. Could you elaborate on this more? Thanks!

Rick Cole

0

Hello Rick,

The Windows client has this screen. Do you have it?

As for holding both text and binary files, it's no problem since this setting
is effective only for text files.

The only problem with this I could see is that some folders may hold
both text and binary files, but I don't think it is a problem for us.
I am not familiar with this StarTeam flag you mention. I haven't seen
any properties like this on folders in StarTeam looking at the Cross
Platform Client. Could you elaborate on this more? Thanks!

Rick Cole

--
Sergey Anchipolevsky
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


0

I am using StarTeam 2006 Cross Platform Client. I don't see anything in the folder properties that mention this. Where can I find it?

Rick

0

Hello Rick,

I'm using the windows client and, unfortunately, I don't have Cross Platform
Client, so I cannot tell where you can find this option. Did you try to look
into its help system?

I am using StarTeam 2006 Cross Platform Client. I don't see anything
in the folder properties that mention this. Where can I find it?

Rick

--
Sergey Anchipolevsky
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


0

Please sign in to leave a comment.