Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » eclipse, ant, and subversion
eclipse, ant, and subversion [message #184685] Sat, 16 December 2006 01:08 Go to next message
Eclipse UserFriend
Originally posted by: rusty.berkeley.edu

I have a web application that I've been working on and I've been using
ant to build it. I also have the project under revision control with
subversion. I've been doing this in a very old school manner; I'm on
unix and editing with emacs and using the subversion command line to
commit changes.

Everyone tells me that my life would be much better if I were using
Eclipse, so I'm trying to do that with this web application.

My first try was to pull in everything to eclipse from the subversion
repository and set it up as a Java Project. That basically works. I
use eclipse to do my editing and whatnot and then I right click on the
ant build.xml file to create my war file and then move the war file to
tomcat's webapps directory and take it for a spin. And I can do my
subversion commits and whatnot from eclipse.

But then I noticed that eclipse has a project type called Dynamic Web
Project, which has advantages over a Java Project, like being able to
quickly try the web app under a locally running tomcat. But I can't
figure out how to get that to work; it seems like my problem is that
eclipse wants the files in specific places, which aren't where I have
them. The directory structure I've been using is a layout that I'm
hoping will work easily with maven (yet another magic bullet that I'm
supposed to be using). I almost got it to work but one of the config
files wasn't being found; I could either get my tests to work with
JUnit, or the web app to work with tomcat, but not both.

Is it possible to get all three of these to play nicely together?
Without having to reorganize my directory structure?

Here's my directory structure (you'll need a fixed-width font, like
Courier, to properly see this):

| build.properties
| build.xml
| checkstyle.xml
|
\---src
+---main
| +---config
| | | applicationContext.xml
| | | configs.xml
| | | ersadmin-controllers.xml
| | | ersadmin-servlet.xml
| | | ersadmin-webflow-config.xml
| | | log4j.xml
| | | web.xml
| | |
| | \---flows
| | select-users-context.xml
| | select-users-flow.xml
| |
| +---java
| | \---edu
| | \---berkeley
| | \---ist
| | \---ers
| | +---ldap
| | | UserDao.java
| | | UserDaoImpl.java
| | |
| | +---service
| | | LoginUserInfo.java
| | | SelectedUsers.java
| | | User.java
| | |
| | \---web
| | DisplayCollection.java
| | DisplayCollectionFormAction.java
| | ResultsCommand.java
| | SearchCommand.java
| | SearchController.java
| | SearchCriteria.java
| | SearchCriteriaFormAction.java
| | SearchResults.java
| | SearchResultsController.java
| | SearchResultsFormAction.java
| | Selects.java
| | SelectsController.java
| |
| +---resources
| | +---lib
| | | cglib-nodep-2.1_3.jar
| | | commons-beanutils-1.7.0.jar
| | | commons-collections-3.2.jar
| | | commons-lang-2.2.jar
| | | commons-logging-1.1.jar
| | | displaytag-1.1.jar
| | | jstl-1.1.2.jar
| | | log4j-1.2.14.jar
| | | ognl-2.6.9.jar
| | | servlet-api.jar
| | | spring-binding-1.0.jar
| | | spring-ldap-1.1.jar
| | | spring-webflow-1.0.jar
| | | spring.jar
| | | standard-1.1.2.jar
| | |
| | \---properties
| | ldap.properties
| |
| \---webapp
| +---css
| | ers.css
| |
| +---jsp
| | index.jsp
| |
| +---tags
| | searchBox.tag
| | usersTable.tag
| |
| \---views
| displayCollection.jsp
| search.jsp
| searchCriteria.jsp
| searchResults.jsp
| selects.jsp
|
\---test
+---java
| \---edu
| \---berkeley
| \---ist
| \---ers
| \---test
| FlowTests.java
| UserDaoTest.java
|
\---resources
\---lib
spring-mock.jar
testng-5.3-jdk15.jar
Re: eclipse, ant, and subversion [message #184790 is a reply to message #184685] Mon, 18 December 2006 04:33 Go to previous message
blackicetea is currently offline blackiceteaFriend
Messages: 2
Registered: July 2009
Junior Member
Make sure that you have the project property set up properly.
That the build path is properly configure. And that your server
is selected. Go in preference and make sure you got the proper JRE
installed and selected. Once you import the project use Project explorer
to move your files around. I hope this will help. Check your
preferences, and make sure they are configure according to your OS.
Previous Topic:JBoss jBPM Installation Location
Next Topic:How to run an applet on eclipse.
Goto Forum:
  


Current Time: Thu Apr 18 06:53:11 GMT 2024

Powered by FUDForum. Page generated in 0.03457 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top