Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] How to set executable bit (chmod 755) on non-root files?

>One option would be to move materialize-products to earlier phase "prepare-package" and then do your chmod in phase "package".

sorry this didn't work. You have to move archive-products to a later phase (e.g. "pre-integration-test") instead.
Local tests showed snippet below works for me.

Regards,
Jan

--- snippet to execute ant tasks after products have been installed and before they are archived ---

			<plugin>
				<groupId>org.eclipse.tycho</groupId>
				<artifactId>tycho-p2-director-plugin</artifactId>
				<version>${tycho-version}</version>
				<executions>
					<execution>
						<id>materialize-products</id>
						<goals>
							<goal>materialize-products</goal>
						</goals>
					</execution>
					<execution>
						<id>archive-products</id>
						<phase>pre-integration-test</phase>
						<goals>
							<goal>archive-products</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
		        <plugin>
                <artifactId>maven-antrun-plugin</artifactId>
                <version>1.7</version>
                <executions>
                    <execution>
                        <id>antrun</id>
                        <phase>package</phase>
                        <configuration>
                            <target>
                                <echo message="Hello from ant in between materialize-products and archive-products" />
                            </target>
                        </configuration>
                        <goals>
                            <goal>run</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>




Back to the top