aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Tutorial on Eclipse Launch Configuration? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Tutorial on Eclipse Launch Configuration?" Watch "Tutorial on Eclipse Launch Configuration?" New topic
Author

Tutorial on Eclipse Launch Configuration?

Tong Wang
Ranch Hand

Joined: Jun 20, 2005
Posts: 44
Hi everyone,

I am new to Eclipse 3.3 (having been using JBoss Eclipse). While playing with the hibernate4gwt sample project, I noticed a launch configration file with the ".launch" file name suffix:



I wonder if someone could help me understand this or point me to some documents.

Thanks,
Tong

(Escaped the XML to make it visible - PC)
[ December 11, 2007: Message edited by: Paul Clapham ]
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30299
    
150

Tong,
The Eclipse help probably explains this.

While you can view the .launch file in a text editor, it is more interesting and intuitive to look at it differently. If you go to the Run menu and choose "Run as", you can view the launch configuration. It shows a nice wizard with all the options.

The .launch file is the stored settings, so you can run the same launch configuration in the future or share it with others.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Tong Wang
Ranch Hand

Joined: Jun 20, 2005
Posts: 44
I see, thank you.

Also, in JBoss Eclipse, for each project, you can configure how the file will be packaged: what go into a WAR, what go into a JAR, etc. Eclipse 3.3 doesn't seem to have this option. So, to produce a EAR for deployment, do I have to use some external build tool, like Ant or Maven?
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30299
    
150

Tong,
Eclipse doesn't explicitly support J2EE. You need to download a J2EE plugin or better yet use an Ant/Maven script.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16014
    
  20

Aha! So that's where they hide that stuff!

That's a config file used by the Eclipse Run and Debug functions and it defines the run/debug environment for an Eclipse run unit - which can be a webapp test, stand-alone application, junit test(s) or certain other things, such as Maven builds.

Those files are normally kept in the workspace .metadata directory and should therefore be, in effect, invisible. Every Eclipse workspace for every eclipse user should be a distinct entity and not shared or stored under version control, so you should normally never know that they exist, to say nothing of what's in them.

Then again, it can be really annoying when you have a complex test environment and want to move the project to another machine. There's no way to export that stuff via the Eclipse IDE that I know of. So it's possible that some clever person took advantage of some inside knowledge and manually made a copy of it.

Although, because it's not an "official" Eclipse file format, use it with care.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tutorial on Eclipse Launch Configuration?