Discussion:
[tycho-user] PDE API description file line endings
Justin Georgeson
2016-12-05 15:49:28 UTC
Permalink
I'm finding that building my plugins on Windows and Linux the jar files are different due to the .api_description file having OS-native line endings instead of standardized for all platforms. I'd like to have them standardized so that if I do a Maven deploy to Artifactory the file will only be stored once due to them having the same md5.

I know that the apitooling.apigeneration Ant task isn't provided by the Tycho project (since it's part of the PDE project), but I was wondering if anyone has already run into this and has a workaround.

----------------------------------------------------------------------
This e-mail, including any attached files, may contain confidential and privileged information for the sole use of the intended recipient. Any review, use, distribution, or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive information for the intended recipient), please contact the sender by reply e-mail and delete all copies of this message.
Nick Boldt
2016-12-05 17:24:14 UTC
Permalink
If the .api_description file is committed to git (rather than
generated at build-time), you can ensure correct line endings when
checking it out from source using your git config settings.

http://stackoverflow.com/questions/10418975/how-to-change-line-ending-settings
I’m finding that building my plugins on Windows and Linux the jar files are
different due to the .api_description file having OS-native line endings
instead of standardized for all platforms. I’d like to have them
standardized so that if I do a Maven deploy to Artifactory the file will
only be stored once due to them having the same md5.
I know that the apitooling.apigeneration Ant task isn’t provided by the
Tycho project (since it’s part of the PDE project), but I was wondering if
anyone has already run into this and has a workaround.
________________________________
This e-mail, including any attached files, may contain confidential and
privileged information for the sole use of the intended recipient. Any
review, use, distribution, or disclosure by others is strictly prohibited.
If you are not the intended recipient (or authorized to receive information
for the intended recipient), please contact the sender by reply e-mail and
delete all copies of this message.
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or unsubscribe from
this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
--
Nick Boldt :: Productization Lead :: JBoss Tools & Dev Studio :: Red Hat, Inc.
http://nick.divbyzero.com
Justin Georgeson
2016-12-05 18:56:44 UTC
Permalink
The generated one includes the resolved bundle qualifier, so it seems like committing the api_decsription file would have the wrong value (not sure if that actually matters or not). Additionally our experience has been that it's worth it to add a few seconds to the build by generating it so that we can eliminate the human error of forgetting to update the file along with the code.

-----Original Message-----
From: tycho-user-***@eclipse.org [mailto:tycho-user-***@eclipse.org] On Behalf Of Nick Boldt
Sent: Monday, December 05, 2016 11:24 AM
To: Tycho user list
Subject: [EXTERNAL] Re: [tycho-user] PDE API description file line endings

External Sender: Use caution with links/attachments.



If the .api_description file is committed to git (rather than generated at build-time), you can ensure correct line endings when checking it out from source using your git config settings.

https://urldefense.proofpoint.com/v2/url?u=http-3A__stackoverflow.com_questions_10418975_how-2Dto-2Dchange-2Dline-2Dending-2Dsettings&d=DgIGaQ&c=PskvixtEUDK7wuWU-tIg6oKuGYBRbrMXk2FZvF0UfTo&r=dLxYM3PBhAqFnkH7uKz_OVZL1uyui4QoEmBCjCmEiTk&m=hidnz7YnOHUPCuaeAXrLEDKaJOVh5Pf9X3-E7xK9BFM&s=UxRB_upEyQEGZrGJxrMpahZ_tYnRSusQWfgwA4aRHjs&e=
I’m finding that building my plugins on Windows and Linux the jar
files are different due to the .api_description file having OS-native
line endings instead of standardized for all platforms. I’d like to
have them standardized so that if I do a Maven deploy to Artifactory
the file will only be stored once due to them having the same md5.
I know that the apitooling.apigeneration Ant task isn’t provided by
the Tycho project (since it’s part of the PDE project), but I was
wondering if anyone has already run into this and has a workaround.
________________________________
This e-mail, including any attached files, may contain confidential
and privileged information for the sole use of the intended recipient.
Any review, use, distribution, or disclosure by others is strictly prohibited.
If you are not the intended recipient (or authorized to receive
information for the intended recipient), please contact the sender by
reply e-mail and delete all copies of this message.
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or
unsubscribe from this list, visit
https://urldefense.proofpoint.com/v2/url?u=https-3A__dev.eclipse.org_m
ailman_listinfo_tycho-2Duser&d=DgIGaQ&c=PskvixtEUDK7wuWU-tIg6oKuGYBRbr
MXk2FZvF0UfTo&r=dLxYM3PBhAqFnkH7uKz_OVZL1uyui4QoEmBCjCmEiTk&m=hidnz7Yn
OHUPCuaeAXrLEDKaJOVh5Pf9X3-E7xK9BFM&s=R1580JsjetmeOXlZl4okHmGI5OAoXbPn
niP3YaEX6Kg&e=
--
Nick Boldt :: Productization Lead :: JBoss Tools & Dev Studio :: Red Hat, Inc.
https://urldefense.proofpoint.com/v2/url?u=http-3A__nick.divbyzero.com&d=DgIGaQ&c=PskvixtEUDK7wuWU-tIg6oKuGYBRbrMXk2FZvF0UfTo&r=dLxYM3PBhAqFnkH7uKz_OVZL1uyui4QoEmBCjCmEiTk&m=hidnz7YnOHUPCuaeAXrLEDKaJOVh5Pf9X3-E7xK9BFM&s=DoRfrnGhrUILOvBoREQCWRvplFhcApbmLqJvL61pbQU&e=
_______________________________________________
tycho-user mailing list
tycho-***@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://urldefense.proofpoint.com/v2/url?u=https-3A__dev.eclipse.org_mailman_listinfo_tycho-2Duser&d=DgIGaQ&c=PskvixtEUDK7wuWU-tIg6oKuGYBRbrMXk2FZvF0UfTo&r=dLxYM3PBhAqFnkH7uKz_OVZL1uyui4QoEmBCjCmEiTk&m=hidnz7YnOHUPCuaeAXrLEDKaJOVh5Pf9X3-E7xK9BFM&s=R1580JsjetmeOXlZl4okHmGI5OAoXbPnniP3YaEX6Kg&e=
Loading...