Sponsored Content
Top Forums UNIX for Dummies Questions & Answers How to detect and uninstall apache ant ? Post 302428313 by ninadgac on Wednesday 9th of June 2010 12:50:50 PM
Old 06-09-2010
Hello,
Thanks for your reply. I managed to run install latest version(1.8.1) of ant successfully.
I used following commands at my shell in which I logined with username root which is supreme userand export ANT_HOME=/opt/ant & export PATH=$PATH:/opt/ant/bin commands at my shell, after that ANT starts running and I tested it with ant -version command.
but after I logged out of shell and again logged in to find out ANT is not running again and path ANT_HOME and other PATH which I set before is empty. I wonder why it not saving changes? at ANT_HOME and PATH.

Really strange.

Regards
ninad
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

how do u uninstall apache

i am running redhat 7.3 how do i unistall apache if i installed from a tarball? really need to know this thanx (8 Replies)
Discussion started by: matt2kjones
8 Replies

2. Shell Programming and Scripting

Ant & Unix

Hi How can we call ant script in Unix shell script. My purpose is to call ant script which uses sql tag for getting connection to database and then run sql statements in the database. Once sql execution is over , it should then check its result for error and if ok , should then run the sql... (0 Replies)
Discussion started by: pankajkrmishra
0 Replies

3. Solaris

Uninstall Apache 1.3.37

I have installed apache on solaris 8. May I know how do i uninstall it? :confused: thanks. (1 Reply)
Discussion started by: sagolo
1 Replies

4. Solaris

Perl - How to uninstall? Will pkgrm uninstall all versions?

Hello, I'm working on a Solaris 9/Sparc machine and it has the Solaris 10 version of Perl (5.8.8) installed on it, which always requires all kinds of library files that Solaris 9 doesn't come with. I think the best way to do is to uninstall this wrong version and install the correct Solaris 9... (1 Reply)
Discussion started by: alanlh
1 Replies

5. Red Hat

How to install and uninstall apache on Red Hat Linux 5

Hi All, I installed Linus on virtual PC on my system. I want to configure apache on it. Also i want to install nagios and want to access through web broser from my system. How can I do this. Kindly provide soln its required urgently......... plsssssssssssssssss (4 Replies)
Discussion started by: sunray
4 Replies

6. Solaris

Uninstall Apache web server

Hello, I have a Solaris 10 and it looks like it was installed with apache. I see some files in: Since I'd like to use CSWapache2 from OpenCSW I'd like to remove the one from SUN but I don't know which package name it has. Do you know how can I remove it ? Thanks R.F ---------- Post... (4 Replies)
Discussion started by: RobertFord
4 Replies

7. UNIX for Advanced & Expert Users

Functionality of ant build and ant deploy unix commands

I have made some code changes in the corresponding java file for date formatting purpose so that it supports upgraded sybase version from 12.6 to 12.7 and have build the code and deployed using the following UNIX commands. ant build ant deploy. "ant build" executes the build.xml which is... (1 Reply)
Discussion started by: vmpcit
1 Replies

8. Red Hat

Process not running: /opt/java15/jdk/bin/java -classpath /opt/apache/apache-ant-1.7.0-mod/lib/ant-la

Have no idea on what the below error message is: Process not running: /opt/java15/jdk/bin/java -classpath /opt/apache/apache-ant-1.7.0-mod/lib/ant-launcher.jar org.apache.tools.ant.launch.Launcher -buildfile build.xml dist. Any help? (3 Replies)
Discussion started by: gull05
3 Replies
build.xml(5)							File Formats Manual						      build.xml(5)

NAME
build.xml - configuration file used by ant to build projects DESCRIPTION
The file build.xml is the default configuration file used by ant to determine target to build for a specific project. It can be considered the ant equivalent of Makefile.. The format of ant is XML and for each project a seperate file is constructed. The buildfile consists of one or more tasks. An example is given below. <project default="compile"> <target name="compile"> <javac srcdir="src"> </target> </project> This example has one target and it is defaulted. The target itself consists of one task javac which compiles the files in the src direc- tory. TARGETS
Targets can depend on other targets. These dependencies are given by the depends attribute of the <target> element. TASKS
A task is a piece of code that is executed. Ant recognizes built-in task, optional tasks, but one can also write new tasks. Built-in tasks The built-in tasks are: Ant, AntCall, AntStructure, Apply, Available, Chmod, Copy, Cvs, Delete, Deltree, Echo, Exec, ExecOn, Fail, Filter, FixCRLF, GenKey, Get, GUnzip, GZip, Jar, Java, Javac, Javadoc/Javadoc2, Mail, Mkdir, Move, Patch, Property, Replace, Rmic, SignJar, Sql, Style, Tar, Taskdef, Touch, TStamp, Unjar, Untar, Unwar, Unzip, Uptodate, War, Zip Java Executes a Java class within the running (Ant) VM or forks another VM if specified. Below are some of the attibutes to the <java> element: classname (required) the Java class to execute fork if enabled triggers the class execution in another VM (disabled by default) jvm the command used to invoke the Java Virtual Machine, default is java. The command is resolved by java.lang.Runtime.exec(). Ignored if fork is disabled. Other arguments are classpath, classpathref, maxmemory, failonerror, dir and output. Javac Compiles a source tree within the running (Ant) VM. srcdir (required) location of the java files destdir location to store the class files debug indicates whether source should be compiled with debug information; defaults to off optimize indicates whether source should be compiled with optimization; defaults to off target generate class files for specific VM version (e.g., 1.1 or 1.2). includes comma-separated list of patterns of files that must be included; all files are included when omitted excludes comma-separated list of patterns of files that must be excluded; no files (except default excludes) are excluded when omit- ted. defaultexcludes indicates whether default excludes should be used (yes | no); default excludes are used when omitted. Other arguments are includesfile, excludesfile, classpath, bootclasspath, classpathref, bootclasspathref, extdirs, encoding, depre- cation, verbose, includeAntRuntime, includeJavaRuntime and failonerror. Properties A project can have a set of properties, which consist of a name value combination. Within tasks they can be used by placing them between "${" and "}", as in "${builddir}/classes". Built-in Properties Ant provides access to all system properties as if they had been defined using a <property> task. For example, ${os.name} expands to the name of the operating system. basedir the absolute path of the project's basedir (as set with the basedir attribute of <project>). ant.file the absolute path of the buildfile. ant.project.name the name of the project that is currently executing; it is set in the name attribute of <project>. ant.java.version the JVM version Ant detected; currently it can hold the values "1.1", "1.2" and "1.3". Classpath The classpath can be set by using the <classpath> element: <classpath> <pathelement path="${classpath}"/> <pathelement location="lib/helper.jar"/> <fileset dir="lib"> <include name="**/*.jar"/> </fileset> </classpath> SEE ALSO
ant(1) AUTHOR
This manpage is made by Egon Willighagen <egonw@sci.kun.nl> and based on the Ant Manual <http://jakarta.apache.org/ant/manual/>. Mac OS X September 22, 2004 build.xml(5)
All times are GMT -4. The time now is 08:31 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy