File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes import the java project using ANT in eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "import the java project using ANT in eclipse" Watch "import the java project using ANT in eclipse" New topic
Author

import the java project using ANT in eclipse

Eshwin Sukhdeve
Ranch Hand

Joined: Mar 15, 2012
Posts: 80
Hi,
I have java project folder .this folder i have created using ant script.now I want to import this project into
my eclipse.so I am following this step. new-project-java project from ant existing file...and here
I am giving the build.xml path.

my build.xml is....

<?xml version="1.0" encoding="UTF-8"?>
<project name="sonnetframwwork1"
xmlns:vss="antlibrg.apache.ant.vss">
<!--this file was created by Eclipse Runnable JAR Export Wizard-->
<!--ANT 1.7 is required
-->
<target name="prepare">
<vssget localPath="D:\Project13\sonnetframwwork1"
recursive="true"
vsspath="$/FunctionalAuto/ExcelBased"
login="eshwin.s,Eshu@123"
serverPath="\\blrbg1fsr001\\Testing Practice\\Testingpractice_vss"
ssdir="C:\\Program Files\\Microsoft Visual Studio\\VSS\\win32"
writable="true"/>
</target>

<path id="compile.classpath">
<fileset dir="D:\Project13\sonnetframwwork1\references">
<include name="*.jar"/>
</fileset>
</path>
<fileset dir="D:\Project13\sonnetframwwork1\testdata">
</fileset>
<fileset dir="D:\Project13\sonnetframwwork1\testscripts">
</fileset>


<target name="create">
<mkdir dir="D:\Project13\sonnetframwwork1\classes"/>
<mkdir dir="D:\Project13\sonnetframwwork1\jar"/>
</target>
<target name="compile">
<javac destdir="D:\Project13\sonnetframwwork1\classes" debug="true" srcdir="D:\Project13\sonnetframwwork1\lib">
<classpath refid="compile.classpath"/>
</javac>
</target>
<target name="jar" depends="compile">
<jar destfile="D:\Project13\sonnetframwwork1\jar\SahiProject.jar"
basedir="classes">
</jar>
</target>
</project>





now the problem is whn I take this build.xml file in eclipse. i get only lib folder in my eclipse project..
if you see this build.xml ..here I am getting the project from vss.so I am getting so many folders in my project(testscript,testdata)
so I want this folder also in my project.so how to metion this folder in build.xml file so that if i take this build.xml file in my eclipse project
automatically i should get this folders
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: import the java project using ANT in eclipse