Re: Conditional code generation

2007-04-03 Thread Steffen Mazanek
Franz, this rocks. Thanks a lot! Best regards, Steffen franz see schrieb: Good day to you, Steffan, Yes, that would do just fine. You can have something like ... profile idadd-examples-that-compile-only-if-eclipse-is-installed/id activation property

Conditional code generation

2007-04-02 Thread Steffen Mazanek
Hello, I have something like the following project layout: -project -- library -- program -- examples -- examples-that-compile-only-if-eclipse-is-installed -- examples-that-do-not-need-eclipse Concretely I use eclipse in headless mode to generate some sources via maven-emfgen-plugin.

Re: Conditional code generation

2007-04-02 Thread Eric Redmond
Check out build profiles. You can check for the existance of some tell-tale eclipse installation, such as the eclipse executable file. http://maven.apache.org/pom.html Eric On 4/2/07, Steffen Mazanek [EMAIL PROTECTED] wrote: Hello, I have something like the following project layout:

Re: Conditional code generation

2007-04-02 Thread Steffen Mazanek
I have defined a property eclipse.dir in my settings.xml. Is it possible to skip a submodule completely whenever eclipse.dir is not set? Or to check whether eclipse.dir is a valid path? What is best practice? Eric: I am pretty new to maven so I would be very happy if you could work out the

Re: Conditional code generation

2007-04-02 Thread Wayne Fay
Here's more info: http://maven.apache.org/guides/introduction/introduction-to-profiles.html Wayne On 4/2/07, Steffen Mazanek [EMAIL PROTECTED] wrote: I have defined a property eclipse.dir in my settings.xml. Is it possible to skip a submodule completely whenever eclipse.dir is not set? Or to

Re: Conditional code generation

2007-04-02 Thread franz see
] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Conditional-code