Hi Timo,

Timo Wolf wrote on Tuesday, January 16, 2007 9:07 AM:

> Hi All,
> 
> I have a java swing application that I build with maven. I include
> some Mac OS X  java libraries to integrate the app into OS X. I get
> errors when compiling on Windows, as the os x libraries are not
> available. 
> 
> Is it possible to detect the current OS and exclude some java classes
> from compiling when not working on OS X?
> I am looking to configure the compile like:
> 
>   <if>
>       <equals arg1="${isMacOsX}" arg2="false" />
>       <then>
>               <exclude>myClassesToExclude</exclude>
>       </then>
> </if>
> 
> thanks a lot

yes, this is what profiles can be used for.

- Jörg

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to