This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Building Blockchain Apps and have Michael Yuan on-line!
See this thread for details.
Win a copy of Building Blockchain Apps this week in the Cloud/Virtualization 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
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

creating subfolders in eclipse using ANT

Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
here is my build.xml this file I am getting the project form I am getting the complete sturcture of my project
in my local system succesfully.and using ANT only i am creating some folders(classes,jar,src).this is fine
after that when I take this build.xml file in eclipse using new->project->get existing build.xml..then i get
my complete project folder in eclipse.but the problem is as soon as i get in eclipse .inside the classes folder
it is again creating the project folders.which i dont is happning when I am taking from eclipse.
(the folders which is creating inside the classes these are those files only which i am getting from vss)

here is my build.xml file

<?xml version="1.0" encoding="UTF-8"?>
<project name="sonnetframwwork2"
xmlns:vss="antlib:org.apache.ant.vss" basedir="." >
<!--this file was created by Eclipse Runnable JAR Export Wizard-->
<!--ANT 1.7 is required
<property environment="env."/>
<property name="env.CLASSPATH" value=""/>
<property name="build_dir" location="src/classes/testscripts"/>
<property name="testdata" location="src/testdata"/>
<property name="main-class" location="src/testscripts/TestExecute"/>

<target name="prepare">
<vssget localPath="Project13\src"
serverPath="\\blrbg1fsr001\\Testing Practice\\Testingpractice_vss"
ssdir="C:\\Program Files\\Microsoft Visual Studio\\VSS\\win32"

<path id="project.classpath">
<pathelement location="Project13/src/classes"/>
<fileset dir="Project13/src/references">
<include name="*.jar"/>
<include name="*.class"/>

<target name="create">
<mkdir dir="Project13\src"/>
<mkdir dir="Project13\src\classes"/>
<mkdir dir="Project13\src\jar"/>
<target name="compile">
<javac destdir="Project13\src\classes" debug="true" srcdir="Project13\src">
<classpath refid="project.classpath"/>
<target name="mainjar">
<jar destfile="Project13\src\jar\mainProject.jar"
<attribute name="Main-Class" value="testscripts.TestExecute"/>
<target name="jar" depends="compile">
<jar destfile="Project13\src\jar\SahiProject.jar"

<target name="run">
<java classname="testscripts.TestExecute"/>
<classpath refid="project.classpath">

Message for you sir! I think it is a tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!