If you don't want to keep previous versions,  you should set the append parameter to false (I think this is the default
Le 23 oct. 2012 10:45, <e92-330cd@xxxxxxxxx> a écrit :
Hello,
We are building our product periodicaly with jenkins, using tycho. We have "our.update.site" module included in reactor project.
That module has category.xml file , with wanted features in update site. So far so good.  But I am not sure what is the proper way to update the the eclipse-repository (already existed update site).
this is part of pom.xml of that "our.update.site" project:
<build>
    <plugins>
      <plugin>
        <groupId>org.eclipse.tycho</groupId>
        <artifactId>tycho-p2-repository-plugin</artifactId>
        <version>0.15.0</version>
        <configuration>
          <includeAllDependencies>true</includeAllDependencies>
          <createArtifactRepository>true</createArtifactRepository>
          <compress>true</compress>
        </configuration>
      </plugin>
                <plugin>
                <groupId>org.eclipse.tycho.extras</groupId>
                <artifactId>tycho-p2-extras-plugin</artifactId>
                                <version>${tycho-version}</version>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>mirror</goal>
                        </goals>
                        <configuration>
                            <source>
                                <!-- source repository to mirror from as a URI -->
                                <repository>
                                    <url>${project.baseUri}/target/repository</url>
                                    <layout>p2</layout>
                                </repository>
                            </source>
                            <!-- Target repository file location -->
                            <destination>C:/Tomcat/webapps/ROOT/repository</destination>
                            <!-- whether to append to the target repository content -->
                            <append>true</append>
                        <compress>true</compress>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
    </plugins>
  </build>
the question are:
1] is it possible to say tycho where should be created update site automaticaly, instead of mirroring - its time consuming
i have found only this: 
http://www.eclipse.org/tycho/sitedocs/tycho-packaging-plugin/update-site-mojo.html
where can i define the "Target" , but i think that the update-site packagin should be used anymore, instead of that should be eclipse repository, right?
2]how to achieve to have only the latest version on the update site? I dont want to store the previous version in tomcat/repository. I dont know if the configuration <append> true</append> will delete the old version.
3] is the copying generated "updatesite repository" to Tomcat webbapp/root folder correct way to keep updated the update site?
Thank you
D
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user