Re: eclipse plugin without feature.xml

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

On Sat, 2008-05-31 at 00:07 +0200, Sergio Pascual wrote:
> Hello, I'm trying to package a eclipse plugin called veditor. I have
> followed the guidelines in wiki/Packaging/EclipsePlugins
> The zip with the source code contains a file plugin.xmll but doesn't
> contain feature.xml. When building,
> 
> %{eclipse_base}/buildscripts/pdebuild -f net.sourceforge.veditor
> 
> fails, because feature.xml doesn't exist. How do I build with
> plugin.xml but without feature.xml?

Until package-build (a wrapper around PDE Build) supports building
plugins which have no containing feature, you'll either need to spoof up
a feature.xml like eclipse-quickrex -- and offer it to upstream,
please :) -- or build like the following but with a spoofed
build/assemble.net.sourceforge.veditor.all.xml (look for another simple
package's generated one for inspiration):

# See attached patch
patch < veditorbuild.patch
ant -f buildjavacc.xml
# This next bit is essentially what pde-build wraps
eclipse -nosplash -Duser.home=`pwd`/home \
-application org.eclipse.ant.core.antRunner \
-Dtype=plugin -Did=net.sourceforge.veditor \
-DsourceDirectory=$(pwd) \
-DbaseLocation=$SDK \
-Dbuilder=/usr/share/eclipse/plugins/org.eclipse.pde.build/templates/package-build \
-DjavacSource=1.5 -DjavacTarget=1.5 \
-f /usr/share/eclipse/plugins/org.eclipse.pde.build/scripts/build.xml

HTH,

Andrew
Index: build.properties
===================================================================
--- build.properties	(revision 470)
+++ build.properties	(working copy)
@@ -12,5 +12,6 @@
 # Set the following to override the environment
 # variable settings for JAVACC_HOME and ECLIPSE_HOME
 #
-#javacc_dir=/home/ali/javacc-4.0
-#eclipse_plugin_dir=/home/ali/eclipse/plugins
\ No newline at end of file
+javacc_dir=/usr/share/java
+eclipse_plugin_dir=/usr/share/eclipse/plugins
+eclipse_plugin_dir2=/usr/lib/eclipse/plugins
Index: buildjavacc.xml
===================================================================
--- buildjavacc.xml	(revision 470)
+++ buildjavacc.xml	(working copy)
@@ -33,6 +33,9 @@
 		<fileset dir="${eclipse_plugin_dir}">
             <include name="**/*.jar"/>
         </fileset>
+		<fileset dir="${eclipse_plugin_dir2}">
+            <include name="**/*.jar"/>
+        </fileset>
 	</path>
 	
    <target name="jjtree">       
--
Fedora-packaging mailing list
Fedora-packaging@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-packaging

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux