Can you create a list of files in Apache ant without using touch tasks

rajeshkumar created the topic: Can you create a list of files in Apache ant without using touch tasks
Can you create a list of files in Apache ant without using touch tasks?
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

Apache ant interview questions

rajeshkumar created the topic: Apache ant interview questions
Links to all Apache Ant Task – ant.apache.org/manual/tasklist.html

Question 1. Write a ant build.xml and call one batch file from build.xml. batch file should create one directory.

Question 2. Write a ant build.xml which should copy the files and folders from another and create a tar file.

Question 3. Linux – Write a ant build.xml which should create 5 files and five folders and change the file permission to all files to 644 and folder to 755.

Question 4. Write a two build.xml named with “build1.xml” and “build2.xml”. Each build.xml will compile one java program but build2.xml should be called from build1.xml.

Question 5. Go through all these questions mentioned in the url below and try to find an answer and provide your answer as part of comments.
www.scmgalaxy.com/index.php?option=com_k…d-answers&Itemid=120
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

sribhavani_u replied the topic: Apache ant interview questions
Question1
========



Question2
=========







Question 3
=========





files created







Folders created










permissions changed files:644 folders:755

Question4
=========
q4build1










q4build2



nineetha replied the topic: Apache ant interview questions
QUESTION 1



[/b]

QUESTION 2









QUESTSION 3























QUESTION 4 target









rajeshkumar replied the topic: Apache ant interview questions
Good work. I checked last week and its nice.
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

Sample Apache ant assignment – try it out

rajeshkumar created the topic: Sample Apache ant assignment – try it out
Clone the prject- github.com/scmgalaxy/helloworld-java-ant

Duplicate 10 source file from HelloWorld.java
Create a directory called “mybuild”
Clean all 10 java class files if exist
compile only 5 java files
Copy rest 5 files under folder called “no-need-to-compile”
create package of jar / war of the compiled files
Note: must use echo in all programs
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

crystal2904 replied the topic: Sample Apache ant assignment – try it out





































rajeshkumar replied the topic: Sample Apache ant assignment – try it out
There are some issues in terms of understanding the requirement but its a good start to you.
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

Sample Apache ant project for begginers

rajeshkumar created the topic: Sample Apache ant project for begginers
Pre-
1. clone the src code from – github.com/scmgalaxy/Javatest1
2. Create a proper build structure via ant

Write a two build.xml –
One(Name of the file – Build.xml)
Second(Name of the file – myfile.xml)

You should do the following things in build.xml
1. copy the src file from clone folder to build folder
2. change the permission of file to current user
3. create a build folder strcuture needed. use your knowledge
4. Comiple the source code
5. Call build file – myfile.xml

You should do the following things in myfile.xml
1. Zip the compiled file.
2. Create a jar file.
3. Delete the .class file
4. Sleep for 10 sec
5. create a directory using exec.(Not ant tasks)
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

harsha924 replied the topic: Sample Apache ant project for begginers
Hi Rajesh,

Here is my assignment.

Regards,
Harsha

File Attachment:
File Name: MyAntProje…rsha.zip
File Size:5 KB
MyAntProject-Harsha

Tagged :

Apache Ant Interview Questions and Answers

rajeshkumar created the topic: Apache Ant Interview Questions and Answers
Please provide answers for the all following questions here…
www.scmgalaxy.com/scm/general/interview-…ons-and-answers.html
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Apache ant programming Exercise

rajeshkumar created the topic: Apache ant programming Exercise
Apache ant programming excercise

FIRST
Download Ant from the Apache Software Foundation and install it.

Exercise Question 1

Pre-
1. clone the src code from – github.com/scmgalaxy/SampleJavaFiles
2. Create a proper build structure via ant

Write a two build.xml –
One(Name of the file – Build.xml)
Second(Name of the file – myfile.xml)

You should do the following things in build.xml
1. copy the src file from clone folder to build folder
2. change the permission of file to current user
3. create a build folder strcuture needed. use your knowledge
4. Comiple the source code
5. Call build file – myfile.xml

You should do the following things in myfile.xml
1. Zip the compiled file.
2. Create a jar file.
3. Delete the .class file
4. Sleep for 10 sec
5. create a directory using exec.(Not ant tasks)

Exercise Question 2

Clone the prject- github.com/scmgalaxy/helloworld-java-ant

Duplicate 10 source file from HelloWorld.java
Create a directory called “mybuild”
Clean all 10 java class files if exist
compile only 5 java files
Copy rest 5 files under folder called “no-need-to-compile”
create package of jar / war of the compiled files
Note: must use echo in all programs

Exercise Question 3
Write a ant build.xml and call one batch file from build.xml. batch file should create one directory.

Exercise Question 4

Links to all Apache Ant Task – ant.apache.org/manual/tasklist.html

Exercise Question 5
Write a ant build.xml and call one batch file from build.xml. batch file should create one directory.

Exercise Question 6
Write a ant build.xml which should copy the files and folders from another and create a tar file.

Exercise Question 7
Linux – Write a ant build.xml which should create 5 files and five folders and change the file permission to all files to 644 and folder to 755.

Exercise Question 8
Write a two build.xml named with “build1.xml” and “build2.xml”. Each build.xml will compile one java program but build2.xml should be called from build1.xml.

Exercise Question 9
Go through all these questions mentioned in the url below and try to find an answer and provide your answer as part of comments.
www.scmgalaxy.com/index.php?option=com_k…d-answers&Itemid=120

Exercise Question 10.
Write a ant script which will create a directory called “hptraining” as part of target called “training”

Exercise Question 11.
Write a ant script which will copy some files to keep under directory called “myfiles” and make sure you are renaming one file with yourname.txt.

Exercise Question 12.
Modify a script from 3, and introduce your name thorugh command line and display using ant.

Exercise Question 13.
Write some source code that is part of a package. Now write an Ant build file to compile, jar and javadoc the package.
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

Power Point PPT: Using Ant To Build J2 Ee Application – Complete Guide

ant-to-build-j2ee-application

Power Point PPT: Using Ant To Build J2 Ee Application

 

Tagged : / / / / / / / / / / / / / / / / / /