On Tue, Feb 28, 2012 at 6:26 PM, andrea antonello
<[email protected]> wrote:
> Hi Andrea,
>
> [...]
>> Thinking out loud, maybe the module could define a set of profiles
>> that allow to depend on the right SWT based on the operating system
>> and architecture.
>>
>> See the following links:
>> http://alistairisrael.wordpress.com/2009/07/15/writing-eclipse-swt-apps-using-maven/
>> http://code.google.com/p/piccolo2d/issues/detail?id=203
>
> I gave the stuff a look and while it looks nice, it has some parts I
> am not sure about.
> - someone would have to load the jars for all the OS in maven (guess
> that is not too hard, if I recall correctly either you or Justin
> loaded the swt jar into opengeo's maven)

Yep

> - the maven command would have to be launched with the -DgroupId=YYY
> -DartifactId=YYY defined, right?

As far as I know, a profile defined like this:

<profile>
     <id>windows</id>
     <activation>
       <os>
         <family>windows</family>
         <arch>x86</arch>
       </os>
     </activation>
     <properties>
       <swt.groupId>org.eclipse.swt.win32.win32</swt.groupId>
       <swt.artifactId>x86</swt.artifactId>
     </properties>
   </profile>

automatically activates if, and only if, the operating system is a win32 one.
So it should really be transparent to the user, which is, I believe, the
best scenario.

Cheers
Andrea

-- 
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:      +39 0584 962313
mob:    +39 339 8844549

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

-------------------------------------------------------

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to