kumar hai

Greenhorn
+ Follow
since Oct 12, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by kumar hai

Hi...

Thanks for you fast reply...I got solution..

Thanks again...
14 years ago
Any example ?

<target name="compress.war">
<echo> Generating War file... </echo>
<war destfile="${war.output}/BIM_PremiseInfoFileWeb.war" webxml="${temp.dir}/WEB-INF/web.xml" basedir="${temp.dir}" update="true" />
</target>

above is my war file creation ...please tell me example any
14 years ago
Hi,

Using ANT scripts i am creating ear/war file.

here file name "MANIFEST.MF"

code details:

Manifest-Version: 1.0
Class-Path: BIM_PremiseInfoFileEJB.jar BIM_PremiseInfoFile.jar

----------------------------------------------------------------------------------------
after creating war file:

file name :MANIFEST.MF


Manifest-Version: 1.0
Ant-Version: Apache Ant 1.7.1
Created-By: 1.5.0_20-b02 (Sun Microsystems Inc.)

---------------------------------------------------------------

same file..but inside code only changing ,....Please any one explan if any solution for this..
Please tell me how get the same file with all codes.
14 years ago
Hi..Please find the below error details...while compiling java file using javac i am getting the below error...


compile:
[javac] Compiling 4 source files to c:\ant\class
[javac] c:\ant\java.class\LogHelper.java:16: package commonj.sdo does not exist
[javac] import commonj.sdo.DataObject;
[javac] ^
[javac] c:\ant\java.class\LogHelper.java:106: cannot find symbol
[javac] symbol : class DataObject
[javac] location: class AMSLib.LogHelper
[javac] public String logMessage(DataObject bo1) throws Exception{
[javac] ^
[javac] 2 errors

BUILD FAILED
C:\ant\javac.xml:34: Compile failed; see the compiler error output for details.



urgent.please help to resolve this issue...


14 years ago
so...there is no ANT task or option to generate those file?
14 years ago
HI....I am looking details about generate following files...

ejb-jar.xml
ibm-ejb-jar-bnd.xmi
ibm-ejb-jar-ext-pme.xmi
ibm-ejb-jar-ext-pme51.xmi
ibm-ejb-jar-ext.xmi


Please telll me any one ..how to generate those files using ANT scripts....

What is extra application needed....

Please help with sample scripts for generate those files............


14 years ago
im not include that .classpath file...only jar file i inlucde

<target name="compile">
<javac srcdir="${java.file}" destdir="${class}" classpath="${jar.file}/log4j-1.2.15.jar" fork="yes">
</javac>

below the output:

please help ....



Buildfile: javac.xml

copy:
[delete] Deleting directory c:\ant\java.class
[delete] Deleting directory c:\ant\jars
[mkdir] Created dir: c:\ant\jars
[mkdir] Created dir: c:\ant\java.class
[delete] Deleting directory c:\ant\class
[mkdir] Created dir: c:\ant\class
[copy] Copying 4 files to c:\ant\jars
[copy] Copied 2 empty directories to 2 empty directories under c:\ant\jars
[copy] Copying 4 files to c:\ant\java.class

compile:
[javac] Compiling 4 source files to c:\ant\class

BUILD FAILED
C:\ant\javac.xml:32: Error running javac.exe compiler

14 years ago
<copy flatten="true" todir="${jar.file}">
<fileset dir="${src}" includes="**/.classpath,**/gen/**,**/*.MF,**/*.jar"/>
</copy>

<copy flatten="true" todir="${java.file}">
<fileset dir="${src}" includes="**/*.java"/>
</copy>
</target>

<target name="compile">
<javac srcdir="${java.file}" destdir="${class}" classpath="${jar.file}/log4j-1.2.15.jar"/>
</target>


Hi,
please check above copy tasks...i am copy .classpath file,.jar fil & other files to on location,,,& also i am copy java file to one location...

in javac task i am compiling all java file & include jar file(this is classpath file)..& also below i mention .classpath file details..please tell me if i need to include any more file for compiling...


------------------------------------

<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="lib" path="log4j-1.2.15.jar"/>
<classpathentry excluding="gen/|gen/src/" kind="src" path=""/>
<classpathentry kind="src" path="gen/src">
<attributes>
<attribute name="optional" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/WebSphere Process Server v6.2 JRE"/>
<classpathentry kind="con" path="org.eclipse.jst.server.core.container/com.ibm.ws.ast.st.runtime.runtimeTarget.v61.bi/wps.v62"/>
<classpathentry kind="output" path=""/>
</classpath>

---------------------------------------
14 years ago
means....i am not understand....help clear with this..
14 years ago
Hi...using java file im doing compile...javac

i incllude all java file & .classpath & jar files...my issue is my build is got success message but class file not creating in that distfolder...please tell me clear details for javac...i check google also..using that information i updated...but not class file generating for my scripts...

<javac srcdir="${src}" destdir="C:\ant\Output" classpath="${src}/commonj-sdo-2.1.0.jar">
<include name="**/*.*"/>

please any one help for this...

14 years ago
that file is like header file..& i hope that file created in Window only...

& also while generate ear file or war file im include this file also...that time only i getting this size increase issue...

sorry for previously i mentioned while copy only i got this issue...


real issue...while generate war/ear file i am getting size increase issue...

14 years ago
Hi,
I am copy few file to one location...file size is 25 bytes after copy this file,bytes value changed.after copy that file size is 102 bytes. Please tell me how to avoid this error..i want original size only...


im using:

<copy includeemptydirs="true" todir="${temp.dir}" preservelastmodified="true">
<fileset dir="${src1.dir}" includes="**/MANIFEST.MF"/>
</copy>


please reply me ..im waiting for your reply
14 years ago
Thanks for your reply...


I want to replace one particular text (this text available in middle of one file.so i want to replace to end(last) . from one line to another line...

please arrange me sample scripts for this........

14 years ago
I have 2 file with same name but size only may be different,in this time I want to compare those 2 file & consider only which is big size..


ex:file1 - size is 4 k
file1 - size is 15 k

both files from different location...i want to compare with file size is greater...& that file i need to copy to one location...

---------------------------------------------------------------------
14 years ago
Hi...Please suggest me any one...


I want to create scripts(ANT) to find the file size...

please reply me with idea...


Thanks
14 years ago