Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

import the java project using ANT in eclipse

Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have java project folder .this folder i have created using ant I want to import this project into
my 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"
<!--this file was created by Eclipse Runnable JAR Export Wizard-->
<!--ANT 1.7 is required
<target name="prepare">
<vssget localPath="D:\Project13\sonnetframwwork1"
serverPath="\\blrbg1fsr001\\Testing Practice\\Testingpractice_vss"
ssdir="C:\\Program Files\\Microsoft Visual Studio\\VSS\\win32"

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

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

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 I am getting the project from I am getting so many folders in my project(testscript,testdata)
so I want this folder also in my 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
no wonder he is so sad, he hasn't seen this tiny ad:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic