aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes Deploy JAR file to UNIX Server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Deploy JAR file to UNIX Server" Watch "Deploy JAR file to UNIX Server" New topic

Deploy JAR file to UNIX Server

Troy Archbold

Joined: May 17, 2005
Posts: 15
I am using a build.xml file to create a JAR file. I also need the build.xml ANT script to transfer the JAR file to a UNIX server where it will be deployed on WebLogic 8.1.

Is there a good way to transfer the file to the UNIX server besides a telnet session? If only it could be as easy as mapping to a Windows server.
Carol Enderlin
Ranch Hand

Joined: Oct 10, 2000
Posts: 1364
You can use the optional ant FTP task.

Note that this task requires you to download a couple of additional jars if you don't already have them. The easiest way to use those is to drop them into your ant_home/lib directory along with the ant jars.

See the Library Dependencies section of the Installing ant page.

To use the FTP task, you need jakarta-oro , and commons-net jars.
I agree. Here's the link:
subject: Deploy JAR file to UNIX Server
Similar Threads
eclipse and Ant (fundamental question)
ant against build.xml
Ant Modifying Property file
error during FTP transfer: org apache commons net MalformedServerReplyException
Loadjava program