• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

How to wite batch commands import the existing project into eclipse helios editor

 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have checkout the projects from subversion and put in this location C:\project\sources\java
My workspace location is: C:\project\workspace
My Eclipse location: C:\project\eclipse\

I can manually import the source into eclipse. But i am trying to write batch commands to import the existing projects into eclipse.

My batch file


Is it possible to import the source into eclipse using batch commands


Help me,
Thanks in advance
 
Robert Jack
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using eclipse helios

I tried the following command. Its not working:



Help me.
Thanks in advance.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I had to do a similar thing. Here is what I did.

First, I create a new workspace and in there create a new, empty project of the same name. I exited Eclipse and zipped up the workspace directory.

Then, during a build, I performed these steps:

1) Extracted the source for my project from Subversion (actually, Jenkins did this for me)
2) Unzipped the workspace with the empty project into another location.
3) Copied my project's sources to the empty project in the unzipped workspace.
4) Ran the following Eclipse command to build the project:

cmd /c ${eclipse.exe} -nosplash -refresh -application org.eclipse.jdt.apt.core.aptBuild -data ${workspace_dir}

where ${eclipse.exe} was the full path to exclipsec.exe and ${workspace_dir} was the full path where I unzipped the workspace with the empty project.
By the way, I had to run n this command three times because the "-refresh" option did not fully work the first time around. On some PCs it worked on the second time, but on a few PCs it required a third try.

After this, I copied the source to the original project location and let Maven build them from there. I did it this way because the project made use a a plugin that generated Java sources as part of build time - the data used to generate those source was stored in XML files (the plugin provided a graphics editor, and stored the graphics in the XML files) and we stored the XML files in Subversion. This build process was ugly, but it worked. Fortunately we are replacing this Eclipse plugin with other software and won;t have to go through these gyrations in the future.

I hope this helps you.
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic