Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] rootfiles for osx RCP application

Very good, thanks Jan I will try that.  The issue is these are the same
files that I want in a different place depending on the platform, so I
don't want to have 3 copies of them in our version control system ideally.

Tamar

On 5/29/13 8:20 AM, "Sievers, Jan" <jan.sievers@xxxxxxx> wrote:

>>1. is it possible to tell the rootfiles or some specific files to go
>>into this directory via tycho?
>
>should be possible. you can add any nested folder hierarchy as root files.
>See example 
>http://git.eclipse.org/c/tycho/org.eclipse.tycho-demo.git/tree/itp04-rcp/e
>xample-feature 
>
>in build.properties sth like
>root.macosx.cocoa.x86_64 = rootfiles/macosx
>
>and your feature project has in the feature project root
>
>rootfiles/macosx/Contents/MacOS/myscriptfile
>
>Regards
>Jan
>
>
>
>From: tycho-user-bounces@xxxxxxxxxxx
>[mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Cohen, Tamar
>(ARC-TI)[Stinger Ghaffarian Technologies Inc. (SGT Inc.)]
>Sent: Mittwoch, 29. Mai 2013 16:18
>To: Tycho user list
>Subject: [tycho-user] rootfiles for osx RCP application
>
>Hi Tycho geniuses --
>
>I've got my nifty tycho / maven build system running now to do a cross
>platform build.  As part of this I have some rootfiles defined for my
>different platforms.  Some of the root files are text files that I'm
>actually expecting to be at the current working directory when the user
>launches my application with an os-specific script that I include.
>
>My problem arises on OSX; OSX has the different structure namely
>myapplication.app/Contents/MacOS/myapplication  is the actual
>application.  My rootfiles get placed NOT inside that directory, instead
>they are placed at the top level (parallel to myapplication.app).  My
>script launches this by calling open -a myapplication.app.  Current
>working directory when I run this myapplication.app/Contents/MacOS/.
>
>QUESTIONS:
>2. is it possible to tell the rootfiles or some specific files to go into
>this directory via tycho?
>3. Failing that, I've been trying to make an antrun task that is
>environment-specific, so just for the osx environment it would move the
>files.  This does not work; I do not know how to specify what os
>environment to run this in. Here is a snippet of my pom . note that I
>already have an antrun task here that updates the version in the product
>file.
> <plugin>
>			<groupId>org.apache.maven.plugins</groupId>
>			<artifactId>maven-antrun-plugin</artifactId>
>			<version>1.6</version>
>			<executions>
>				<execution>
>					<id>package</id>
>					<phase>package</phase>
>				<configuration>
>					<!-- this is the bit I don't know how to constrain -->
>					<environments>
>						<environment>
>							<os>macosx</os>
>							<ws>cocoa</ws>
>							<arch>x86_64</arch>
>						</environment>
>					</environments>
>					<target>
>						<tasks>
>						 <echo message="moving configuration files for osx"/>
>					        <move
>todir="${basedir}/target/products/mypluginname/macosx/cocoa/x86_64/STWorkb
>ench.app/Contents/MacOS">
>					          <fileset
>dir="${basedir}/target/products/mypluginname/macosx/cocoa/x86_64">
>					          	  <include name="**/file1"/>
>					          	  <include name="**/file2"/>
>					          </fileset>
>					        </move>
>					        </tasks>
>						</target>
>					<goals>
>						<goal>run</goal>
>					</goals>
>				</configuration>
>				</execution>
>				
>			</executions>
>		</plugin>
>
>Thanks!
>
>Tamar
>
>_______________________________________________
>tycho-user mailing list
>tycho-user@xxxxxxxxxxx
>https://dev.eclipse.org/mailman/listinfo/tycho-user



Back to the top