Author: thilinab Date: Mon May 18 12:35:30 2009 New Revision: 36087 URL: http://wso2.org/svn/browse/wso2?view=rev&revision=36087
Log: Added equinox-bundlesinfo-plugin to generate the bundle.info Modified: trunk/solutions/identity/modules/distribution/pom.xml Modified: trunk/solutions/identity/modules/distribution/pom.xml URL: http://wso2.org/svn/browse/wso2/trunk/solutions/identity/modules/distribution/pom.xml?rev=36087&r1=36086&r2=36087&view=diff ============================================================================== --- trunk/solutions/identity/modules/distribution/pom.xml (original) +++ trunk/solutions/identity/modules/distribution/pom.xml Mon May 18 12:35:30 2009 @@ -154,7 +154,7 @@ <artifactId>org.wso2.carbon.xkms.mgt.ui</artifactId> <version>${carbon.version}</version> </dependency> - + <dependency> <groupId>org.wso2.carbon</groupId> <artifactId>org.wso2.carbon.ui.menu.registry</artifactId> @@ -410,9 +410,14 @@ </fileset> </unzip> - <replace file="target/wso2carbon-${carbon.version}/conf/carbon.xml" token="${product.name}" value="Identity Server"/> - <replace file="target/wso2carbon-${carbon.version}/conf/carbon.xml" token="<ServerURL>https://${carbon.local.ip}" value="<ServerURL>https://localhost"/> - <replace file="target/wso2carbon-${carbon.version}/conf/carbon.xml" token="<!--HostName>www.wso2.org</HostName-->" value="<HostName>localhost</HostName>"/> + <replace file="target/wso2carbon-${carbon.version}/conf/carbon.xml" + token="${product.name}" value="Identity Server"/> + <replace file="target/wso2carbon-${carbon.version}/conf/carbon.xml" + token="<ServerURL>https://${carbon.local.ip}" + value="<ServerURL>https://localhost"/> + <replace file="target/wso2carbon-${carbon.version}/conf/carbon.xml" + token="<!--HostName>www.wso2.org</HostName-->" + value="<HostName>localhost</HostName>"/> <copy todir="target/wso2carbon-${carbon.version}/webapps/ROOT/WEB-INF/plugins/" overwrite="false"> @@ -462,25 +467,6 @@ </tasks> </configuration> </execution> - <execution> - <id>clean_target</id> - <phase>install</phase> - <configuration> - <tasks> - <delete dir="target/archive-tmp"/> - <delete dir="target/dependency-maven-plugin-markers"/> - <delete dir="target/maven-archiver"/> - <delete dir="target/wso2carbon-${carbon.version}"/> - <delete file="target/wso2is-${pom.version}.jar"/> - <delete dir="target/sources"/> - <delete dir="target/site"/> - <delete dir="src/site"/> - </tasks> - </configuration> - <goals> - <goal>run</goal> - </goals> - </execution> </executions> </plugin> @@ -521,7 +507,107 @@ </execution> </executions> </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-antrun-plugin</artifactId> + <version>1.1</version> + <executions> + <execution> + <id>---------------extract-IS-zip</id> + <phase>verify</phase> + <goals> + <goal>run</goal> + </goals> + <configuration> + <tasks> + <unzip src="target/wso2is-${pom.version}.zip" + dest="target/tmp"/> + </tasks> + </configuration> + </execution> + </executions> + </plugin> + + <plugin> + <groupId>org.wso2.maven</groupId> + <artifactId>equinox-bundlesinfo-plugin</artifactId> + <version>1.0.0</version> + <executions> + <execution> + <id>---------------create-bundlesinfo-file</id> + <phase>verify</phase> + <goals> + <goal>bundlesinfo</goal> + </goals> + </execution> + </executions> + <configuration> + <frameworkBundles> + <param> + org.eclipse.equinox.util,1.0.100.v20090306-1900,file:plugins/org.eclipse.equinox.util-1.0.100.v20090306-1900.jar,10,true + </param> + <param> + org.eclipse.osgi.services,3.2.0.v20090306-1900,file:plugins/org.eclipse.osgi.services-3.2.0.v20090306-1900.jar,10,true + </param> + <param> + org.eclipse.equinox.ds,1.1.0.v20090306-1900,file:plugins/org.eclipse.equinox.ds-1.1.0.v20090306-1900.jar,10,true + </param> + <param> + org.wso2.carbon.bridge,1.0.0,file:plugins/org.wso2.carbon.servletbridge.extensionbundle_1.0.0.jar,10,false + </param> + </frameworkBundles> + <bundlesDirectories> + <param> + ${basedir}/target/tmp/wso2is-${pom.version}/webapps/ROOT/WEB-INF/plugins/common + </param> + <param> + ${basedir}/target/tmp/wso2is-${pom.version}/webapps/ROOT/WEB-INF/plugins/server + </param> + <param> + ${basedir}/target/tmp/wso2is-${pom.version}/webapps/ROOT/WEB-INF/plugins/console + </param> + </bundlesDirectories> + <bundleInfoOutputDir> + target/tmp/wso2is-${pom.version}/webapps/ROOT/WEB-INF/eclipse/configuration/org.eclipse.equinox.simpleconfigurator + </bundleInfoOutputDir> + <bundlesUrlPrefix>file:plugins/</bundlesUrlPrefix> + <defaultStartLevel>10</defaultStartLevel> + </configuration> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-antrun-plugin</artifactId> + <version>1.1</version> + <executions> + <execution> + <id>finalize</id> + <phase>install</phase> + <goals> + <goal>run</goal> + </goals> + <configuration> + <tasks> + <echo message="Recreating wso2IS ZIP file"/> + <zip destfile="target/wso2is-${pom.version}.zip" update="true"> + <zipfileset dir="target/tmp/" excludes="**/*.sh,**/native/*"/> + <zipfileset dir="target/tmp/" includes="**/*.sh,**/native/*" filemode="755"/> + </zip> + <delete dir="target/archive-tmp"/> + <delete dir="target/dependency-maven-plugin-markers"/> + <delete dir="target/maven-archiver"/> + <delete dir="target/wso2carbon-${carbon.version}"/> + <delete file="target/wso2is-${pom.version}.jar"/> + <delete dir="target/sources"/> + <delete dir="target/site"/> + <delete dir="target/tmp"/> + <delete dir="src/site"/> + </tasks> + </configuration> + </execution> + </executions> + </plugin> </plugins> </build> - </project> _______________________________________________ Identity-dev mailing list [email protected] https://wso2.org/cgi-bin/mailman/listinfo/identity-dev
