Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] root option in feature.xml ignored

Jep my .product definition is based on features and the feature with
the root option specified (in the build.properties file) is added to
the product dependencies:

   <features>
      <feature id="com.base.feature" version="1.0.0.qualifier"/>
   </features>



On Tue, May 31, 2011 at 10:09 AM, Stefan Weber <stefan@xxxxxxxxxxxxx> wrote:
> Do you use a feature based product and do you have included the feature inside the product?
> Without that the feature is not taken into account while building the product thus the rootfiles are not copied to the product.
>
> Regards
> Stefan
>
>
> ----- Original Message -----
> From: mort.motes@xxxxxxxxx
> To: tycho-user@xxxxxxxxxxx
> Date: 31.05.2011 10:00:46
> Subject: Re: [tycho-user] root option in feature.xml ignored
>
>
>> Jep I use the eclipse-repository packaging type described here:
>>
>> https://docs.sonatype.org/display/TYCHO/Tycho+reference+card#Tychoreferencecard-Products
>>
>> Here is my pom for my product:
>>
>> <project xmlns="http://maven.apache.org/POM/4.0.0";
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>>        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>> http://maven.apache.org/maven-v4_0_0.xsd";>
>>        <modelVersion>4.0.0</modelVersion>
>>
>>        <parent>
>>                <groupId>com.base</groupId>
>>                <artifactId>parent</artifactId>
>>                <version>1.0.0-SNAPSHOT</version>
>>                <relativePath>../com.base.parent</relativePath>
>>        </parent>
>>
>>        <artifactId>product</artifactId>
>>        <packaging>eclipse-repository</packaging>
>>        <name>Product</name>
>>
>>        <properties>
>>                <p2.copy.icons>true</p2.copy.icons>
>>        </properties>
>>
>>        <build>
>>                <plugins>
>>                        <plugin>
>>                                <artifactId>maven-antrun-plugin</artifactId>
>>                                <executions>
>>                                        <execution>
>>                                                <!-- Currently tycho does not understand launcher icon specification
>>                                                        the same way as PDE so a manual copy is necessary -->
>>                                                <id>p2.copy.icons</id>
>>                                                <phase>compile</phase>
>>                                                <goals>
>>                                                        <goal>run</goal>
>>                                                </goals>
>>                                                <configuration>
>>                                                        <target name="p2.copy.icons: ${p2.copy.icons}" if="${p2.copy.icons}">
>>                                                                <copy
>>                                                                        todir="${project.build.directory}/products/${project.groupId}.${project.artifactId}"
>>                                                                        failonerror="true" file="launcher.ico" />
>>                                                        </target>
>>                                                </configuration>
>>                                        </execution>
>>                                </executions>
>>                                <dependencies>
>>                                        <dependency>
>>                                                <groupId>org.apache.ant</groupId>
>>                                                <artifactId>ant-jsch</artifactId>
>>                                                <version>${ant.jsch.version}</version>
>>                                        </dependency>
>>                                </dependencies>
>>                        </plugin>
>>
>>                        <plugin>
>>                                <groupId>${tycho-groupId}</groupId>
>>                                <artifactId>tycho-maven-plugin</artifactId>
>>                                <version>${tycho-version}</version>
>>                                <configuration>
>>                                        <publishArtifacts>true</publishArtifacts>
>>                                </configuration>
>>                        </plugin>
>>                        <plugin>
>>                                <groupId>${tycho-groupId}</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>
>>                                                <goals>
>>                                                        <goal>archive-products</goal>
>>                                                </goals>
>>                                        </execution>
>>                                </executions>
>>                        </plugin>
>>                </plugins>
>>        </build>
>> </project>
>>
>> As an alternative I have tried to add a build.properties file to the
>> root of the product project and and add the root folder in that
>> project. But its still not included in the completed build. Any ideas?
>>
>>
>>
>>
>>
>> On Tue, May 31, 2011 at 9:08 AM, Stefan Weber <stefan@xxxxxxxxxxxxx> wrote:
>> > Hey Mort,
>> >
>> > are you using the eclipse-repository packaging type for your product?
>> > If not, do it like shown here:
>> > https://docs.sonatype.org/display/TYCHO/Tycho+reference+card#Tychoreferencecard-Products
>> >
>> > eclipse-application is out-of-date and is not using the eclise pde product export.
>> >
>> > Greetz
>> > Stefan
>> >
>> >
>> > ----- Original Message -----
>> > From: mort.motes@xxxxxxxxx
>> > To: tycho-user@xxxxxxxxxxx
>> > Date: 30.05.2011 16:24:10
>> > Subject: Re: [tycho-user] root option in feature.xml ignored
>> >
>> >
>> >> I have the following (using relative paths to submodules)
>> >>
>> >> project.parent
>> >>     | -- > pom.xml
>> >>
>> >>
>> >> project.feature
>> >>     | -- > pom.xml
>> >>     | -- > feature.xml
>> >>     | -- > build.properties
>> >>     | -- > resources
>> >>                 | -- > lib
>> >>                          | -- > sample.txt
>> >>
>> >> project.product
>> >>     | -- > pom.xml
>> >>     | -- > app.product
>> >>
>> >>
>> >> in the project.feature ->build.properties I have:
>> >>
>> >> bin.includes = feature.xml
>> >> root=resources
>> >>
>> >> In the app.product I have added the project.feature project. When I
>> >> build with PDE the folder 'lib' is in the root of my application. When
>> >> I build with tycho its not there. What am I doing wrong?
>> >>
>> >>
>> >>
>> >>
>> >> On Mon, May 30, 2011 at 3:26 PM, Stefan Weber <stefan@xxxxxxxxxxxxx> wrote:
>> >> > Hey,
>> >> >
>> >> > tycho supports this. But only in the product defining feature.
>> >> > Thus you have to create a feature in your product project (a maven module).
>> >> > In that feature the rootfiles are taken into account.
>> >> >
>> >> > parent-pom
>> >> >  |- feature (containing rootfiles)
>> >> >  |- repository (product file)
>> >> >  |- others
>> >> >
>> >> > Cheers
>> >> > Stefan
>> >> >
>> >> > ----- Original Message -----
>> >> > From: mort.motes@xxxxxxxxx
>> >> > To: tycho-user@xxxxxxxxxxx
>> >> > Date: 30.05.2011 14:53:53
>> >> > Subject: [tycho-user] root option in feature.xml ignored
>> >> >
>> >> >
>> >> >> In PDE Build I specify a directory to be included in the root of the
>> >> >> build in the build.properties files in a feature:
>> >> >>
>> >> >> bin.includes = feature.xml,\
>> >> >>                resources/
>> >> >> root=resources
>> >> >>
>> >> >>
>> >> >>
>> >> >> http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse.pde.doc.user/tasks/pde_rootfiles.htm
>> >> >>
>> >> >>
>> >> >> When I export the product the content of the resources folder is
>> >> >> located in the root of the product. But tycho (using 0.12) does not
>> >> >> include this folder. Is this type of feature root folder specification
>> >> >> not supported in tycho?
>> >> >> _______________________________________________
>> >> >> tycho-user mailing list
>> >> >> tycho-user@xxxxxxxxxxx
>> >> >> https://dev.eclipse.org/mailman/listinfo/tycho-user
>> >> >>
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > _______________________________________________
>> >> > tycho-user mailing list
>> >> > tycho-user@xxxxxxxxxxx
>> >> > https://dev.eclipse.org/mailman/listinfo/tycho-user
>> >> >
>> >> _______________________________________________
>> >> tycho-user mailing list
>> >> tycho-user@xxxxxxxxxxx
>> >> https://dev.eclipse.org/mailman/listinfo/tycho-user
>> >>
>> >
>> >
>> >
>> >
>> > _______________________________________________
>> > tycho-user mailing list
>> > tycho-user@xxxxxxxxxxx
>> > https://dev.eclipse.org/mailman/listinfo/tycho-user
>> >
>> _______________________________________________
>> tycho-user mailing list
>> tycho-user@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/tycho-user
>>
>
>
>
>
> _______________________________________________
> tycho-user mailing list
> tycho-user@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/tycho-user
>


Back to the top