Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] Problems specifying program arguments for the *.ini file

In my .product file I have added the following


   <launcherArgs>
      <programArgs>-data @user.home/${deployable}/workspace</programArgs>
      <vmArgsMac>-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts</vmArgsMac>
   </launcherArgs>


which during build time will be filtered using the
maven-resource-plugin. In my pom.xml file I have:

  <properties>
		<deployable>My App</deployable>
                 ...



			<plugin>
				<artifactId>maven-resources-plugin</artifactId>
				<configuration>
					<nonFilteredFileExtensions>
						<nonFilteredFileExtension>dll</nonFilteredFileExtension>
						<nonFilteredFileExtension>exe</nonFilteredFileExtension>
						<nonFilteredFileExtension>ico</nonFilteredFileExtension>
					</nonFilteredFileExtensions>
				</configuration>
				<executions>
						<execution>
							<id>filter-product</id>
							<phase>generate-resources</phase>
							<goals>
								<goal>copy-resources</goal>
							</goals>
							<configuration>
								<outputDirectory>${basedir}</outputDirectory>
								<resources>
									<resource>
										<filtering>true</filtering>
										<directory>${basedir}/unfiltered</directory>
										<includes>
											<include>**/*.product</include>
										</includes>
									</resource>
								</resources>
							</configuration>
						</execution>					
				</executions>
			</plugin>				


 But the ${deployable} property is not substituted and the executable
is not created (the build does not write any warnings or errors). Only
if I remove the program arg will the product be build correctly. So

1) Why does the filtering of the property not work
2) Why is the .exe not build and why are there no errors/warnings?


Back to the top