Eclipse PDE Build plugins output some folders are jar-ed - eclipse

I am running eclipse PDE Build from ant file. I succesfuly get the product but in the ant generated product I get some folders in plugins directory jar-ed unlike the folders I get during the export product from eclipse.
What can be the reason to have the plugins as jar but not folder ? Is there a parameter to set ?
ilke

Yes, in the MANIFEST.MF file of each plugin, you can specify this property:
Eclipse-BundleShape: dir
By default the plugin is jar-ed. With this option, it is expanded as a directory during installation of the plugin.
Note: This option is available since Eclipse 3.5 only.

Related

duplicate bundle in eclipse Mars Release (4.5.0)

I use eclipse which version is Mars Release (4.5.0) to develop RCP application . In product definition file, I designated javax.servlet 3.1.0 bundle. But after I export product, I found a file javax.servlet_3.0.0_2011xxxx.jar in product plugins directory. It puzzled me a lot. Then I browse the Eclipse directory structures, and two jars exist in eclipse/plugins directories: javax.servlet_3.0.0_2011xxxx.jar
javax.servlet_3.1.0_2014xxxx.jar
I'm confused why there are two javax.servlet bundles. Even if there are two bundles, I had designate a version 3.1.0, why export wizard copy a wrong jar file?
I have solved this problem.
In product definition editor page, a precise version.
Referenced from the picture above( I cannot upload picture now, sorry.), click Properties... button to enter an precise version 3.1.0.v20140161800. I must enter 3.1.0.v20140161800 instead of 3.1.0, because a bundle jar named javax.servlet_3.1.0.v20140161800.jar located in eclipse/plugins directory.
Then I export the product, all is done.

How to include JAR to Liferay portlet in Eclipse

How to import jsoup.jar to Liferay portlet, through Eclipse IDE?
just copy your jar file into docroot/WEB-INF/lib folder of your portlet. if you create your portlet correctly using eclipse and Liferay IDE(plugin), eclipse automatically recognize your lib folder and jar files under it into classpath
liferay has ivy settings. you could just locate the ivy.xml file in your liferay-plugin-sdk-6.2 folder (this normally reflects in eclipse as a project folder with your version). add this line <dependency org="org.jsoup" name="jsoup" rev="1.8.1"/>
and then build "all". You'll see it download the dependency. When done, navigate to liferay-plugins-sdk-6.2/.ivy folder, look up the downloaded jar and copy it to your project's lib folder i.e /lib. Go to project properties, then Java Build Path. In the libraries tab, click Add JARs and navigate to /lib and add it.

how to build Hadoop eclipse plugin

I would like to be able to build Hadoop eclipse plugins from
http://svn.apache.org/repos/asf/hadoop/common/tags/
I have managed to get the source into my Eclipse workstation using subclipse, and now I want to build the jar. Do I build it as executable jar? There is no launch configuration associated to the source. Is there a tutorial on how to do this?
The usual approach is :
Checkout the code from Apache's SVN (Done in your case).
Modify build.properties in /src/contrib/eclipse-plugin and add : eclipse.home=/path/to/your/eclipse/folder
Download apache forrest 0.8 and sun jdk (Preferably java 6).
Run ant command as "ant clean package -Djava6.home=/usr/lib/jvm/java-6-sun (Change the path according your machine and make sure you are connected to the network)
At this point eclipse plugin should be there in /build/contrib/eclipse-plugin but the jar is not yet ready to work as
it misses some required jars.
Add the following jars from your HADOOP_HOME/lib folder to the plugin/lib folder commons-configuration-1.6.jar
commons-httpclient-3.0.1.jar commons-lang-2.4.jar
jackson-core-asl-1.0.1.jar jackson-mapper-asl-1.0.1.jar
Modify MANIFEST.MF in /META-INF of the jar to include the path of these added jars.
Copy this jar to plugins folder of eclipse
Run "eclipse -clean"
There are some posts over the net for the same. See if they work for you :
Link 1
Link 2

add jar to eclipse plugin (hadoop)

I need to run an Eclipse (Indigo version) plugin, but from the error log I find out that I am missing 2 jars.
How can I add the missing jar to Eclipse so that I can run the plugin?
Is there a way to add the jar to the existing plugin?
If this is of any help, I try to run Hadoop Map/Reduce perspective and I found out that I should add commons-configuration and commons-lang.
The simplest way is to just copy the Jar file(s) into your plugin project, and then go to the plugin manifest (open the MANIFEST.MF file) and add them to the classpath on the Runtime Tab. Also on the Build tab, make sure they are checked so that they are included in the output of the plugin.
There are other ways, like making a special plugin to house only the required Jar files, or get the bundle (plugin) that might already contain that Jar file from someplace like Orbit.

problem with eclipse Galileo version

for adding jars, when i select Deployment assembly-add-java build path entries...i have nothing ....no jars are there to select....what should i do?Please send me the ans.
Building WAR/EAR's uses a different mechanism from the Java Build Path. You will need to include jar files specifically in this list to have it included in the generated file.