Propchange: ant/sandbox/antdsl/branches/import-experiment/org.apache.ant.antdsl/ivy.xml ------------------------------------------------------------------------------ svn:eol-style = native
Propchange: ant/sandbox/antdsl/branches/import-experiment/org.apache.ant.antdsl/ivy.xml ------------------------------------------------------------------------------ svn:keywords = Date Revision Author HeadURL Id Propchange: ant/sandbox/antdsl/branches/import-experiment/org.apache.ant.antdsl/ivy.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Propchange: ant/sandbox/antdsl/branches/import-experiment/p2repo/ ------------------------------------------------------------------------------ --- svn:ignore (added) +++ svn:ignore Wed Aug 28 21:14:40 2013 @@ -0,0 +1,2 @@ +target +dist Added: ant/sandbox/antdsl/branches/import-experiment/p2repo/.project URL: http://svn.apache.org/viewvc/ant/sandbox/antdsl/branches/import-experiment/p2repo/.project?rev=1518387&view=auto ============================================================================== --- ant/sandbox/antdsl/branches/import-experiment/p2repo/.project (added) +++ ant/sandbox/antdsl/branches/import-experiment/p2repo/.project Wed Aug 28 21:14:40 2013 @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>jst-p2repo</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + </buildSpec> + <natures> + </natures> +</projectDescription> Propchange: ant/sandbox/antdsl/branches/import-experiment/p2repo/.project ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ant/sandbox/antdsl/branches/import-experiment/p2repo/.project ------------------------------------------------------------------------------ svn:keywords = Date Revision Author HeadURL Id Propchange: ant/sandbox/antdsl/branches/import-experiment/p2repo/.project ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: ant/sandbox/antdsl/branches/import-experiment/p2repo/build.xml URL: http://svn.apache.org/viewvc/ant/sandbox/antdsl/branches/import-experiment/p2repo/build.xml?rev=1518387&view=auto ============================================================================== --- ant/sandbox/antdsl/branches/import-experiment/p2repo/build.xml (added) +++ ant/sandbox/antdsl/branches/import-experiment/p2repo/build.xml Wed Aug 28 21:14:40 2013 @@ -0,0 +1,127 @@ +<!-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +--> +<project name="antdsl-p2repo" xmlns:ivy="antlib:org.apache.ivy.ant" xmlns:ac="antlib:net.sf.antcontrib"> + + <import file="../build/common-build.xml" /> + + <target name="clean"> + <delete dir="${basedir}/target"/> + </target> + + <target name="retrieve-eclipse" depends="init,ivy:configure"> + <ivy:resolve type="jar" uncompress="true" resolveId="eclipse.resolve"> + <dependency org="bundle" name="org.eclipse.equinox.launcher" rev="1.3+" /> + <dependency org="bundle" name="org.eclipse.core.runtime" rev="3.8+" /> + <dependency org="bundle" name="org.eclipse.equinox.ds" rev="1.4+" /> + <dependency org="bundle" name="org.eclipse.equinox.p2.publisher.eclipse" rev="1.1+" /> + <dependency org="bundle" name="org.eclipse.equinox.p2.updatesite" rev="1.0+" /> + <!-- provided by the jvm --> + <exclude org="package" module="org.xml.sax" /> + <exclude org="package" module="org.xml.sax.ext" /> + <exclude org="package" module="org.xml.sax.helpers" /> + <exclude org="package" module="javax.xml.parsers" /> + </ivy:resolve> + <ivy:retrieve resolveid="eclipse.resolve" conf="*" type="jar" pattern="target/eclipse/plugins/[artifact]_[revision].[ext]" uncompress="true" sync="true" /> + </target> + + <target name="generate-snapshots-repo" depends="retrieve-eclipse"> + <fileset id="plugins.fileset" dir="${basedir}/target/eclipse/plugins" includes="*" /> + <path id="launcher.path"> + <fileset dir="target/eclipse/plugins/" includes="org.eclipse.equinox.launcher_*.jar" /> + </path> + <compute-osgi.bundles property="osgi.bundles" fileset="plugins.fileset" /> + <delete dir="${basedir}/dist/snapshots" includes="*.xml" /> + <ivy:buildobr baseDir="${p2repo.dir}/dist/snapshots/" out="${p2repo.dir}/dist/snapshots/obr.xml" indent="true" /> + <generate-p2-repo p2repo="${basedir}/dist/snapshots/" name="JST Plugins Repository" launcherclasspath="launcher.path" osgibundles="${osgi.bundles}" /> + <mkdir dir="${basedir}/target" /> + <echo file="${basedir}/target/category.xml"><![CDATA[<?xml version='1.0' encoding='UTF-8'?> +<site> + <category-def name="org.apache.ant.antdsl.category" label="Apache Ant DSL Plugins" /> + <feature url="features/org.apache.ant.antdsl.feature_0.1.0.jar" id="org.apache.ant.antdsl.feature" version="${antdsl.version.full}"> + <category name="org.apache.ant.antdsl.category"/> + </feature> +</site> +]]></echo> + <generate-p2-category p2repo="${basedir}/dist/snapshots/" category="${basedir}/target/category.xml" launcherclasspath="launcher.path" osgibundles="${osgi.bundles}" /> + </target> + + <macrodef name="compute-osgi.bundles"> + <attribute name="property" /> + <attribute name="fileset" /> + <sequential> + <loadresource property="@{property}"> + <string value="${toString:@{fileset}}" /> + <filterchain> + <tokenfilter> + <stringtokenizer delims=";" /> + <replaceregex pattern="org.eclipse.osgi_.*" replace="" flags="gi" /> + <replaceregex pattern="([^_]*)_.*" replace="\1\@start" flags="gi" /> + </tokenfilter> + <tokenfilter> + <replacestring from=";" to="," /> + </tokenfilter> + </filterchain> + </loadresource> + </sequential> + </macrodef> + + <macrodef name="generate-p2-category"> + <attribute name="p2repo" /> + <attribute name="category" /> + <attribute name="launcherclasspath" /> + <attribute name="osgibundles" /> + <sequential> + <makeurl file="@{p2repo}" property="@{p2repo}.url"/> + <makeurl file="@{category}" property="@{category}.url"/> + <java classpathref="@{launcherclasspath}" classname="org.eclipse.core.launcher.Main" fork="true" failonerror="true"> + <arg line="-consoleLog" /> + <arg line="-clean" /> + <arg line="-application org.eclipse.equinox.p2.publisher.CategoryPublisher" /> + <arg line="-metadataRepository ${@{p2repo}.url}" /> + <arg line="-categoryDefinition ${@{category}.url}" /> + <arg line="-categoryQualifier" /> + <sysproperty key="osgi.bundles" value="@{osgibundles}" /> + </java> + </sequential> + </macrodef> + + <macrodef name="generate-p2-repo"> + <attribute name="p2repo" /> + <attribute name="name" /> + <attribute name="launcherclasspath" /> + <attribute name="osgibundles" /> + <sequential> + <makeurl file="@{p2repo}" property="@{p2repo}.url"/> + <java classpathref="@{launcherclasspath}" classname="org.eclipse.core.launcher.Main" fork="true" failonerror="true"> + <arg line="-consoleLog" /> + <arg line="-clean" /> + <arg line="-application org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher" /> + <arg line="-metadataRepository ${@{p2repo}.url}" /> + <arg line="-artifactRepository ${@{p2repo}.url}" /> + <arg line="-metadataRepositoryName" /> + <arg value="@{name}" /> + <arg line="-metadataRepositoryName" /> + <arg value="@{name}" /> + <arg line="-source @{p2repo}" /> + <sysproperty key="osgi.bundles" value="@{osgibundles}" /> + </java> + </sequential> + </macrodef> + +</project> Propchange: ant/sandbox/antdsl/branches/import-experiment/p2repo/build.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ant/sandbox/antdsl/branches/import-experiment/p2repo/build.xml ------------------------------------------------------------------------------ svn:keywords = Date Revision Author HeadURL Id Propchange: ant/sandbox/antdsl/branches/import-experiment/p2repo/build.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: ant/sandbox/antdsl/branches/import-experiment/p2repo/category.xml URL: http://svn.apache.org/viewvc/ant/sandbox/antdsl/branches/import-experiment/p2repo/category.xml?rev=1518387&view=auto ============================================================================== --- ant/sandbox/antdsl/branches/import-experiment/p2repo/category.xml (added) +++ ant/sandbox/antdsl/branches/import-experiment/p2repo/category.xml Wed Aug 28 21:14:40 2013 @@ -0,0 +1,25 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +--> +<site> + <category-def name="org.apache.ant.antdsl.category" label="Apache Ant DSL Plugins" /> + <feature url="features/org.apache.ant.antdsl.feature_0.1.0.jar" id="org.apache.ant.antdsl.feature" version="0.1.0"> + <category name="org.apache.ant.antdsl.category"/> + </feature> +</site> Propchange: ant/sandbox/antdsl/branches/import-experiment/p2repo/category.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ant/sandbox/antdsl/branches/import-experiment/p2repo/category.xml ------------------------------------------------------------------------------ svn:keywords = Date Revision Author HeadURL Id Propchange: ant/sandbox/antdsl/branches/import-experiment/p2repo/category.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml