Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow to define target filename in tpd file #46

Open
Pontesegger opened this issue Nov 3, 2014 · 4 comments
Open

allow to define target filename in tpd file #46

Pontesegger opened this issue Nov 3, 2014 · 4 comments

Comments

@Pontesegger
Copy link

I would love to have a feature to define the name of the target file.

Tycho needs a target file to be named .target
So I would like to create several tpd files in my project which would overwrite the same target file. This would allow to switch the build target quite easily, without renaming/moving files around.

@mduft
Copy link

mduft commented Nov 3, 2014

Nice Idea, actually. Would have some use for that also

@mbarbero
Copy link
Member

mbarbero commented Nov 3, 2014

Hi Christian and Markus,

This sounds compelling but I think it may be dangerous to have several tpdfiles which would override a single targetfile. You will never know which target you will compile against on your continuous integration server (it will depends on the last generation...).

Otherwise, the feature by itself seems legitimate. How would you see the specification of the target file name? A popup when you call the generation of the .target? I would prefer not to do that in the language itself, as this is more a configuration of each run rather than something that should be hardcoded in the file instance.

@Pontesegger
Copy link
Author

I would prefer to have it in the language. Maybe we could have a
defaultFilename "Whatever_target_I_like.target" which populates an input dialog?

Typing stuff all the time is basically the same effort as renaming files after creation.

@Bananeweizen
Copy link
Contributor

I'm wondering why you don't simply use Maven profiles to solve this issue? I mean, you are not switching the build target interactively when running those Tycho builds, or are you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants