aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Ant and Eclipse 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 "Ant and Eclipse" Watch "Ant and Eclipse" New topic
Author

Ant and Eclipse

Gopal Patwa
Greenhorn

Joined: Jul 17, 2002
Posts: 2
I am new to eclipse, I have used netbean for dev and Ant build script for build/deploy and start and stop application sever. It works fine in netbeans when i start my oc4j server and deploy application. But when i do same thing in eclipse when i run start server, it complete it task but Ant wizard window doesn't close or alow me to deploy my application or to do any thing unless i close it, even if want to stop server that laso can't do. I have to deploy application after server start and if i make some changes to source file i re-dploy it without starting oc4j server.
Thanks
Gopal
Chris Reeves
Ranch Hand

Joined: Apr 03, 2002
Posts: 95
Can you post the ant command you're using to start and stop the server? If we see the code, maybe we can help.
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
You might also want to take a look in the log-file in the .metadata directory.


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Gopal Patwa
Greenhorn

Joined: Jul 17, 2002
Posts: 2
Here my build script for only 3 targets, What i understand is once u start J2ee container oc4j from Ant wizard which is a window, so u can't run another task unless this application is not stop or complete. b'cos i have to forcefully killes java.exe from my task manager to stop this process, b'cos my stop target is also in Ant build.
I have checked metadata directory i cound not found anything about this, b'cos it not giving any problem running that target but u can't run another one.
I have to replace "<" and "/>" tag with "(" and ")" for display in this forum i don't know sone how it was not showing the text.
(target depends="init" description="Start OC4J" name="oc4j.start")
(delete dir="oc4j/database"/)
(mkdir dir="oc4j"/)
(mkdir dir="oc4j/log"/)
(mkdir dir="oc4j/persistence"/)
(mkdir dir="oc4j/database"/)
(mkdir dir="oc4j/applications"/)
(mkdir dir="oc4j/config"/)
(mkdir dir="oc4j/default-web-app"/)
(copy todir="oc4j/config")
(fileset dir="etc/oc4j/config"/)
(/copy)
(copy todir="oc4j/default-web-app")
(fileset dir="etc/oc4j/default-web-app"/)
(/copy)
(!-- init db with test data --)
(sql driver="org.hsql.jdbcDriver" password="" src="etc/database/test/data.sql" url="jdbc:HypersonicSQL:${basedir}/oc4j/database/defaultdb" userid="sa")
(classpath)
(pathelement location="lib/oc4j-2.0/hsql.jar"/)
(/classpath)
(/sql)
(!-- start app server --)
(java classname="com.evermind.server.ApplicationServer" fork="true")
(classpath refid="run.oc4j.classpath"/)
(jvmarg value="-Xmx128m"/)
(arg value="-config"/)
(arg value="oc4j/config/server.xml"/)
(/java)
(/target)
(target depends="init" description="Restart OC4J" name="oc4j.restart")
(java classname="com.evermind.client.orion.OrionConsoleAdmin" fork="true")
(classpath refid="run.oc4j.classpath"/)
(arg value="ormi://localhost:23791/"/)
(arg value="admin"/)
(arg value="admin"/)
(arg value="-restart"/)
(/java)
(/target)
(target depends="init" description="Stop OC4J locally." name="oc4j.stop")
(java classname="com.evermind.client.orion.OrionConsoleAdmin" fork="true")
(classpath refid="run.oc4j.classpath"/)
(arg value="ormi://localhost:23791/"/)
(arg value="admin"/)
(arg value="admin"/)
(arg value="-shutdown"/)
(/java)
(/target)
Thanks
Gopal
[ July 18, 2002: Message edited by: Gopal Patwa ]
Chris Reeves
Ranch Hand

Joined: Apr 03, 2002
Posts: 95
You might want to try using an exec to run your process. I haven't tried this, but it occurs to me that it should work.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Ant and Eclipse