Javadoc with Ant
I need to generate javadoc with Ant, however I'm just learning to use both. I am compiling with a root build.xml that antcalls to other build.xmls in child directories and so on until the lowest level is tasked to compile the source in its directory. Is there a way to handle this for javadoc? If I use the same methodology for javadoc, javadoc ends up generating the api docs multiple times bit by bit, but the result is that the output is just overwritten as many times as it's generated.
Is there a better way to do this? I can't seem to get all the api into one document.
Hi there,
I'm not totally sure your requirements here, but it sound like each separate build.xml generates a javadoc task. I would be inclined to remove these tasks from each of those builds, and only have one target from the main build.xml.
I have posted some information in a previous thread about how I use Ant to generate JavaDoc.
http://forum.java.sun.com/thread.jspa?threadID=534186&messageID=2588599#2588599
Now, in the root buid.xml file, either call the ant task seperately using the commandline:
ant.bat -f build.xml BuildJavaDocor, call the ant task internally at the end of the original task using:
<antcall target="BuildJavaDoc" />I hope this helps a bit? If not, please re-post here and we'll help your further.
Regards
Supersaus
Similar Messages
-
Hi, I am new to ANT and am trying to create JavaDocs through ANT. And I got the following error.
BUILD FAILED
/root/IzoneIDE/build.xml:31: No source files and no packages have been specified.
My build.xml file is:
<?xml version="1.0"?>
<!-- build.xml - a simple ant file -->
<project name="Simple Buildfile" default="compile" basedir=".">
<!-- The directory containing source code -->
<property name="src.dir" value="src"/>
<!-- Temporary Build Directories -->
<property name="build.dir" value="."/>
<property name="build.classes" value="${build.dir}/classes"/>
<property name="build.lib" value="${build.dir}/lib"/>
<!-- Target to create the build directories prior to the -->
<!-- compile target. -->
<target name="prepare">
<mkdir dir="${build.classes}"/>
<mkdir dir="${build.lib}"/>
</target>
<target name="clean" description="Removes all generated files.">
<delete dir="${build.classes}"/>
<delete dir="${build.lib}"/>
</target>
<target name="compile" depends="prepare" description="Compiles all source code.">
<javac srcdir="${src.dir}" destdir="${build.classes}"/>
</target>
<javadoc destdir="${build.dir}/docs" windowtitle="Izone IDE Documentation">
<sourcepath location="${build.dir}/src"/>
</javadoc>
<target name="all" depends="clean" description="Cleans, and compiles"/>
</project>When I remove the last javadoc tag, it works fine, but doesn't work with javadoc tag. what is wrong in Java Doc tag.
Thanks
RaheelOK, Never mind, would you post your XML here.Demanding, aren't you?
<project name="Standard Ant Build XML" default="javadocs" basedir=".">
<target name="init-props" description="initialize properties">
<tstamp>
<format property="touch.time" pattern="MM/dd/yyyy hh:mm aa" />
</tstamp>
<filterset id="ant.filters">
<filter token="DATE" value="${TODAY}" />
<filter token="TIME" value="${TSTAMP}" />
</filterset>
<!-- Load in all the settings in the properties file -->
<property file="build.properties" />
</target>
<target name="prepare" depends="init-props" description="create all the necessary directories">
<mkdir dir="${build}"/>
<mkdir dir="${build.classes}"/>
<mkdir dir="${build.lib}"/>
<mkdir dir="${build.manifest}"/>
<mkdir dir="${build.deploy}"/>
<mkdir dir="${build.javadocs}"/>
<mkdir dir="${build.reports}"/>
</target>
<target name="clean" depends="init-props" description="clean up the output directories">
<delete dir="${build}" />
</target>
<target name="set-classpath" depends="prepare" description="set the classpath">
<path id="project.class.path">
<pathelement path="${basedir}" />
<pathelement path="${build.classes}" />
<pathelement path="${src}"/>
<fileset dir="${src.lib}">
<patternset>
<include name="**/*.jar" />
</patternset>
</fileset>
</path>
</target>
<target name="compile" depends="set-classpath" description="compile all java">
<javac srcdir="${src.java}"
destdir="${build.classes}"
classpathref="project.class.path"
deprecation="on"
debug="on">
<include name="**/*.java" />
</javac>
</target>
<target name="test" depends="compile" description="run all unit tests">
<junit>
<jvmarg value="-Xms32m" />
<jvmarg value="-Xmx64m" />
<classpath>
<path refid="project.class.path" />
</classpath>
<formatter type="xml" />
<batchtest fork="yes" todir="${build.reports}">
<fileset dir="${build.classes}">
<include name="**/*TestCase.class" />
</fileset>
<fileset dir="${build.classes}">
<include name="**/*TestSuite.class" />
</fileset>
</batchtest>
</junit>
</target>
<target name="report" depends="test" description="create HTML report for JUnit test results">
<junitreport todir="${build.reports}">
<fileset dir="${build.reports}">
<include name="TEST-*.xml"/>
</fileset>
<report format="frames" todir="${build.reports}"/>
</junitreport>
</target>
<target name="deploy" depends="report" description="deploy the application">
<buildnumber />
<manifest file="${build.manifest}/manifest.mf">
<attribute name="Implementation-Title" value="${project}" />
<attribute name="Built-By" value="${user.name}"/>
<attribute name="Build-Date" value="${TODAY}" />
<attribute name="Major-Version" value="${major}" />
<attribute name="Minor-Version" value="${minor}" />
<attribute name="Build-Number" value="${build.number}" />
</manifest>
<jar jarfile="${build.deploy}/${project}.jar"
manifest="${build.manifest}/manifest.mf">
<fileset dir="${build.classes}" excludes="**/*TestCase*.class, **/*TestSuite*.class"/>
</jar>
<jar jarfile="${build.deploy}/${project}-tests.jar"
manifest="${build.manifest}/manifest.mf">
<fileset dir="${build.classes}" includes="**/*TestCase*.class, **/*TestSuite*.class" />
</jar>
<copy todir="${build.deploy}">
<fileset dir="${src.lib}" />
</copy>
</target>
<target name="javadocs" depends="deploy" description="generate complete javadocs">
<javadoc sourcepath="${src.java}"
destdir="${build.javadocs}"
classpathref="project.class.path"
Overview="${src.java}/overview.html">
<packageset dir="${src.java}" />
</javadoc>
</target>
</project>% -
Hi All,
I have a problem running javadoc with ant. When I run javadoc from the command line it generates all documentation. From an ant task it gives me the following error:
file:/usr/local/jakarta-tomcat-4.1.30/webapps/pb/WEB-INF/source/server/build.xml
:28: Javadoc failed: java.io.IOException: No such file or directory
at org.apache.tools.ant.taskdefs.Javadoc.execute() (/usr/lib/lib-org-apache-t
ools-ant-1.5.2.so)
at org.apache.tools.ant.Task.perform() (/usr/lib/lib-org-apache-tools-ant-1.5
.2.so)
at org.apache.tools.ant.Target.execute() (/usr/lib/lib-org-apache-tools-ant-1
.5.2.so)
can anyone gives me a hint what the problem might be ?
Kind Regards,
Marco Laponder
mlr AT interchain DOT nlHi,
I would suggest there is a problem with the parameter in your XML file. So it would be best you could post the JavaDoc task here so everybody can analyze it for a possible error.
So long. -
Hello!
I built up a web site and I want to test them using ANT. It works fine with other web page, however it doesn't work with web pages with "session" statement. For example in login.jsp I have the following statement
session.setAttribute("user", request.getParameter("userName"));
And if the user's name and password are correct, the user is directed to home.jsp, where i have the following statement to retrieve the user's name:
String id=session.getAttribute("user").toString();
In order to test the above 2 pages with ANT, I have the following code in builder.xml:
<?xml version='1.0'?>
<project name="proj" default="test" basedir=".">
<target name="test">
<get src="http://path/login.jsp?userName=id&passWord=1111" dest="1.html" />
</target>
</project>
When I run the script, I get the error that the home.jsp cannot be opened (see below)
[get] Error opening connection java.io.IOException: Server returned HTTP response code: 500 for URL: http://path/home.jsp
I am pretty sure the above error is caused by the "session" statement, because if I remove the statement in home.jsp, the page can be correctly opened. But I really need the "session" statement, Can someone tell me how to deal with it?
thanks a million.Usually with a 500 error there's more detail in a server log somewhere. Can you find anything in stderr.log or some such?
-
Hello!
I built up a web site and I want to test them using ANT. It works fine with other web page, however it doesn't work with web pages with "session" statement. For example in login.jsp I have the following statement
session.setAttribute("user", request.getParameter("userName"));
And if the user's name and password are correct, the user is directed to home.jsp, where i have the following statement to retrieve the user's name:
String id=session.getAttribute("user").toString();
In order to test the above 2 pages with ANT, I have the following code in builder.xml:
<?xml version='1.0'?>
<project name="proj" default="test" basedir=".">
<target name="test">
<get src="http://path/login.jsp?userName=id&passWord=1111" dest="1.html" />
</target>
</project>
When I run the script, I get the error that the home.jsp cannot be opened (see below)
[get] Error opening connection java.io.IOException: Server returned HTTP response code: 500 for URL: http://path/home.jsp
I am pretty sure the above error is caused by the "session" statement, because if I remove the statement in home.jsp, the page can be correctly opened. But I really need the "session" statement, Can someone tell me how to deal with it?
thanks a million.One mistake i find in your code is while retreiving the session value its session.getAttribute("userName"), as you stored the value using the parameter 'userName'. Is it not causing problem. Please check...
-
Hello,
I'm new to FlexPMD. I have just generated my firsts reports. I try to generate HTML reports.
I browse the documentation, this forum and the web and I find informations to :
- generate documentation with Hudson
- generate documentation with Maven
- generate documentation with XSLT pmd.xml -> html
Ok, I try to keep it simple. So I don't want to use Hudson.
I'm using ANT, and I currently don't want to install/learn Maven.
I'm using FlexUnit with ANT. And It's really simple to generate reports :
<junitreport todir="${report.flexunit.loc}">
<fileset dir="${report.flexunit.loc}">
<include name="TEST-*.xml" />
</fileset>
<report format="frames" todir="${report.flexunit.loc}/html" />
</junitreport>
I'm really new to FlexPMD, so I don't have currently a big knowledge, but it seems impossible to generate a HTML report just like junitreport. (1 line in an ANT task)
I test the XSLT transformation found on this forum (thread "XSLT pmd.xml -> html"). It's really cool. But it's seems difficult, for example, to extract the wrong code part and add it to the HTML page.
So, what is the simpler solution to generate HTML report just with FlexPMD/ANT ?
Thanks !Hello,
Currently you generate a PMD report with ANT like this :
<! -- define taskdef -->
< taskdef name="pmd" classname="com.adobe.ac.pmd.ant.FlexPmdAntTask" classpath="${build.pmd.loc}/flex-pmd-ant-task-${flexpmd.version}.jar">
< classpath>
< path refid="flexpmd.base" />
< pathelement location="${build.pmd.loc}/commons-lang-2.4.jar" />
< pathelement location="${build.pmd.loc}/flex-pmd-core-${flexpmd.version}.jar" />
< pathelement location="${build.pmd.loc}/flex-pmd-ruleset-api-${flexpmd.version}.jar" />
< pathelement location="${build.pmd.loc}/flex-pmd-ruleset-${flexpmd.version}.jar" />
< pathelement location="${build.pmd.loc}/plexus-utils-1.0.2.jar" />
< /classpath>
< /taskdef>
then generate XML report like this :
< pmd sourceDirectory="${src.loc}" outputDirectory="${report.loc}" ruleSet="${build.pmd.loc}/rules.xml"/>
The XML contains some file nodes :
< file name="/Users/user/workspace/AS3_UTILS/src/utils/align/gridAlignSpaceNumber.as">
< violation beginline="22" endline="22" begincolumn="0" endcolumn="27" rule="adobe.ac.pmd.rules.naming.TooShortVariable" ruleset="All Flex Rules" package="utils.align" class="gridAlignSpaceNumber.as" externalInfoUrl="" priority="5">This variable name is too short (3 characters minimum, but 1 actually). Detects when a field, local, or parameter has a very short name< /violation>
< /file>
The message is in the text node < violation>TEXT< /violation>
For me, we miss an important part of the message : the portion of the "bad" code.
It could be very usefull if PMD can generate something like this :
< file name="">
< violation beginline="" endline="" begincolumn="" endcolumn="" rule="" ruleset="" package="" class="gridAlignSpaceNumber.as" externalInfoUrl="" priority="">
< description>TEXT< /description>
< code><CDATA[MY CODE
MY CODE
MY CODE]>< /code>
< /violation>
< /file>
With this, we can generate "full" HTML report with XSLT transform easily.
I understand that it modify the standard XML schema of the output.
So, perharps it could be an option like this :
< pmd fullDescription="true" sourceDirectory="${src.loc}" outputDirectory="${report.loc}" ruleSet="${build.pmd.loc}/rules.xml"/>
What do you think ?
Thanks ! -
Error while building Web Services for Invoking PL/SQL with ANT
Hello,
i tried to build the demo- webservice for plsql- stored procedure, but while i want to run the demo with ant i get the following error:
The same Error occures while Run the Demo with seperate commands: Step 5a(1) Assembly:
env-check:
init:
[mkdir] Created dir: D:\ORAWebServices\webservices_demos\webservices_demos\db\plsql\build\classes\service
wsa:
[java] Fehler: oracle.j2ee.ws.tools.wsa.cli.CommandLineMessageBundle_de
BUILD FAILED
D:\ORAWebServices\webservices_demos\webservices_demos\db\plsql\build.xml:45: The following error occurred while executing this line:
D:\ORAWebServices\webservices_demos\webservices_demos\common.xml:74: Java returned: 1
Total time: 3 seconds
The Database runs on a remote system and the service-connfig.xml is updated.
Thanks for Help.I assume you have OC4J 10.1.3 webservices installed. Then you should not be using service-config.xml. Check out the 10.1.3 documentation about WebServiceAssembler. I am afraid, you are using 10.1.2 style service-config.xml along with 10.1.3 style WebServiceAssembler.
-
Generate a javadoc with eclipse
hello!!!
Is someone know how to generate a javadoc with eclipse???
I find one solution, but I have to set the javadoc.exe location, and i don't know where is it...
please could you help me???
s@binejavadoc.exe file is in the same place as your java.exe file
%JAVA_HOME%\bin
You need to get the full JDK (not just the JRE) and I know this is the case for JDK 1.2 and above (not sure about any other previous version) -
How to deploy ADF-BC (SDO) with ANT
I have an ADF-BC exposed as an webserivce. I can deploy it via JDeveloper, but how do I deploy it with ANT. Does anyone has an ANT script example, based on ADF-BC
Marc
http://orasoa.blogspot.comI am using JDev 11g (ps1). The link you mentioned, is about deploying artifacts to the MDS. I want to deploy and ADFBC exposed as an webservice , (aka SDO object) to the server via ANT.
Marc -
How to define new classpath of libraries while making jar files with ant
I am useing eclipse and ant and trying to make a jar file. I have used some external jar files. I have managed to add external jar files to my jar. But Still I have a problem. In my project all libraries in lib folder. But when I put them into jar file. They are in the root folder.Classpath has changed and It couldn't find the class path.
Is there any body knows how to define a new class path for external libraries with ANT. or How can I put my libraries into a lib folder in jar ?? I think both of them would solve my problem.
thanks in advance.
My code is like that, I think it requires a little modification
<target name="jar">
<mkdir dir="build/jar"/>
<jar destfile="build/jar/Deneme.jar" basedir="build/classes" >
<manifest>
<attribute name="Main-Class" value="${main-class}"/>
</manifest>
<fileset dir="${lib.dir}" includes="**/*.jar"/>
</jar>
</target>I can see why your other "question" was likely deleted. You need to drop the editorial comments and just ask a question. I believe what you want to know is how to configure something using php on your Apache server so that it can be read. If that's your question, here's a couple of places that discuss the topic:
http://www.webmasterworld.com/linux/3345459.htm
http://forums.macrumors.com/showthread.php?t=427742
http://en.allexperts.com/q/PHP5-3508/configuring-installing-permissions.htm
For a general introduction to 'nix permissions, take a look at this:
http://www.osxfaq.com/Tutorials/LearningCenter/UnixTutorials/ManagingPermissions /index.ws
And here's a whole book on the subject of Leopard permissions:
http://my.safaribooksonline.com/9780321579331
Try doing a Google search on "leopard permissions php apache" and see if you find what you are looking for.
Francine
Francine
Schwieder -
Hello,
anyone knows how to do javac -deprecation but with ant???<javac srcdir="${src}" destdir="${build}" classpath="xyz.jar" deprecation="on" />
-
Change manifest file in existing EAR file with ANT task
Hi,
I use ant task (ojdeploy) to create EAR files from ADF application.
Now I want to add the application version number to MANIFEST.MF.
Is it possible to do the manifest file modification IN THE EXISTING EAR FILE (or while creating the EAR file with ojdeploy) with ant task or do I have to do the modification in the source MANIFEST.MF and after this create EAR file with ojdeploy?
BTW: I tried the <ear> task to create the EAR file instead of using ojdeploy but I was not able to find the needed deployment descriptor (appxml="application.xml") in my ADF appication.
regards
PeterHi Peter,
I don't know of a way to do it directly in ANT/ojdeploy. However, you could try exploding the EAR, updating the manifest, and recreating the EAR - cumbersome and slow, but it should work.
John -
Wlcompile - nested javac elements not working with ant 1.6.1
Hi
I have a problem with Ant 1.6.1 and wlcompile.
I get the following error: The <wlcompile> type doesn’t support the nested “javac”
element.
Heres the error msg I get in debug mode:
BUILD FAILED
C:\P2Development\dev\testing\test.xml:3: The <wlcompile> type doesn't support
the nested "javac" element.
at org.apache.tools.ant.IntrospectionHelper.throwNotSupported(IntrospectionHelper.java:573)
at org.apache.tools.ant.IntrospectionHelper.getNestedCreator(IntrospectionHelper.java:624)
at org.apache.tools.ant.IntrospectionHelper.getElementCreator(IntrospectionHelper.java:691)
at org.apache.tools.ant.UnknownElement.handleChild(UnknownElement.java:529)
at org.apache.tools.ant.UnknownElement.handleChildren(UnknownElement.java:320)
at org.apache.tools.ant.UnknownElement.configure(UnknownElement.java:176)
at org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:152)
at org.apache.tools.ant.Task.perform(Task.java:363)
at org.apache.tools.ant.Target.execute(Target.java:301)
at org.apache.tools.ant.Target.performTasks(Target.java:328)
at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
at org.apache.tools.ant.Project.executeTargets(Project.java:1063)
at org.apache.tools.ant.Main.runBuild(Main.java:632)
at org.apache.tools.ant.Main.startAnt(Main.java:183)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)
I’m using windows 2000. I’ve tried with weblogic.jar from Weblogic Server 8.1
SP1 and SP2. I’ve tried with JDK 1.4.1_02 and 1.4.2_04. If I’m using Ant 1.5.3
then everything works perfectly.
I’ve tried to remove the WLS included Ant version to avoid conflicts with Ant
1.6.1 and Ant 1.5.3 (that comes with Weblogic server). I’ve tried to uninstall
Weblogic Server and just keep weblogic.jar, but I still get the same error. I’ve
tried to put weblogic.jar on the classpath, still not working. I’ve tried to remove
all jar files from $ANT_HOME/lib except those jar files needed to run my test
project - ant.jar and ant-launcher.jar, but still doesn’t work. If I change $ANT_HOME
to Ant 1.5.3 and run Ant 1.5.3 then everything works. So it seems to have something
to do with Ant 1.6.1.
Here’s my example code:
<project name="wlcompile_test" default="test" basedir=".">
<target name="test" depends="init">
<wlcompile srcdir="${src.dir}" destdir="${build.dir}">
<javac debug="${build.debuginfo}" debuglevel="${build.debuglevel}"
nowarn="${build.nowarn}" deprecation="${build.deprecated}" source="${build.source.version}"/>
</wlcompile>
</target>
<target name="clean" depends="init">
<delete dir="${build.dir}"/>
</target>
<target name="init">
<taskdef name="wlcompile" classname="weblogic.ant.taskdefs.build.WLCompileTask"
classpath="C:\P2Development\weblogic.jar"/>
<property name="src.dir" value="src"/>
<property name="build.dir" value="classes"/>
<property name="build.compiler" value="modern"/>
<property name="build.compiler.pedantic" value="true"/>
<property name="build.debuginfo" value="true"/>
<property name="build.debuglevel" value="lines,vars,source"/>
<property name="build.deprecated" value="false"/>
<property name="build.nowarn" value="off"/>
<property name="build.source.version" value="1.4"/>
<mkdir dir="${build.dir}"/>
</target>
</project>
And I try to run “ant test”
It doesn’t work with Ant 1.6.1 and weblogic.jar from WLS 8.1 SP1 and SP2. But
it works perfectly if I change to Ant 1.5.3.
Here’s a link to the Ant wlcompile task documentation from BEA:
http://e-docs.bea.com/wls/docs81/programming/environment.html#1098348
Regards,
Tobias WallterYes, this one is fixed in 8.1 SP3. If you need a patch before then,
contact [email protected] and reference CR136493.
-- Rob
Tobias Wallter wrote:
Hi
I have a problem with Ant 1.6.1 and wlcompile.
I get the following error: The <wlcompile> type doesn?t support the nested ?javac?
element.
Heres the error msg I get in debug mode:
BUILD FAILED
C:\P2Development\dev\testing\test.xml:3: The <wlcompile> type doesn't support
the nested "javac" element.
at org.apache.tools.ant.IntrospectionHelper.throwNotSupported(IntrospectionHelper.java:573)
at org.apache.tools.ant.IntrospectionHelper.getNestedCreator(IntrospectionHelper.java:624)
at org.apache.tools.ant.IntrospectionHelper.getElementCreator(IntrospectionHelper.java:691)
at org.apache.tools.ant.UnknownElement.handleChild(UnknownElement.java:529)
at org.apache.tools.ant.UnknownElement.handleChildren(UnknownElement.java:320)
at org.apache.tools.ant.UnknownElement.configure(UnknownElement.java:176)
at org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:152)
at org.apache.tools.ant.Task.perform(Task.java:363)
at org.apache.tools.ant.Target.execute(Target.java:301)
at org.apache.tools.ant.Target.performTasks(Target.java:328)
at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
at org.apache.tools.ant.Project.executeTargets(Project.java:1063)
at org.apache.tools.ant.Main.runBuild(Main.java:632)
at org.apache.tools.ant.Main.startAnt(Main.java:183)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)
I?m using windows 2000. I?ve tried with weblogic.jar from Weblogic Server 8.1
SP1 and SP2. I?ve tried with JDK 1.4.1_02 and 1.4.2_04. If I?m using Ant 1.5.3
then everything works perfectly.
I?ve tried to remove the WLS included Ant version to avoid conflicts with Ant
1.6.1 and Ant 1.5.3 (that comes with Weblogic server). I?ve tried to uninstall
Weblogic Server and just keep weblogic.jar, but I still get the same error. I?ve
tried to put weblogic.jar on the classpath, still not working. I?ve tried to remove
all jar files from $ANT_HOME/lib except those jar files needed to run my test
project - ant.jar and ant-launcher.jar, but still doesn?t work. If I change $ANT_HOME
to Ant 1.5.3 and run Ant 1.5.3 then everything works. So it seems to have something
to do with Ant 1.6.1.
Here?s my example code:
<project name="wlcompile_test" default="test" basedir=".">
<target name="test" depends="init">
<wlcompile srcdir="${src.dir}" destdir="${build.dir}">
<javac debug="${build.debuginfo}" debuglevel="${build.debuglevel}"
nowarn="${build.nowarn}" deprecation="${build.deprecated}" source="${build.source.version}"/>
</wlcompile>
</target>
<target name="clean" depends="init">
<delete dir="${build.dir}"/>
</target>
<target name="init">
<taskdef name="wlcompile" classname="weblogic.ant.taskdefs.build.WLCompileTask"
classpath="C:\P2Development\weblogic.jar"/>
<property name="src.dir" value="src"/>
<property name="build.dir" value="classes"/>
<property name="build.compiler" value="modern"/>
<property name="build.compiler.pedantic" value="true"/>
<property name="build.debuginfo" value="true"/>
<property name="build.debuglevel" value="lines,vars,source"/>
<property name="build.deprecated" value="false"/>
<property name="build.nowarn" value="off"/>
<property name="build.source.version" value="1.4"/>
<mkdir dir="${build.dir}"/>
</target>
</project>
And I try to run ?ant test?
It doesn?t work with Ant 1.6.1 and weblogic.jar from WLS 8.1 SP1 and SP2. But
it works perfectly if I change to Ant 1.5.3.
Here?s a link to the Ant wlcompile task documentation from BEA:
http://e-docs.bea.com/wls/docs81/programming/environment.html#1098348
Regards,
Tobias Wallter -
Hi all,
For some reason i get the following error message when trying to build any of the code in the j2ee tutorial.
C:\WINDOWS\system32\ntvdm.exe
Error while setting up environment for the application. Choose 'close' to terminate the application
If anyone has any ideas as to why this happens, any help would be much appreciated.
thanksi'm using windows xp pro. i have actually sorted that problem out by replacing ant 1.3 with ant 1.5
I now have another error message. When i try to run the application client with the foolowing command:
C:\forte4j\j2sdkee1.3\bin>runclient client \examples\ears\SavingsAccountApp.ear -name SavingsAccountClient -textauth
I get the following
Initiating login ...
Username = null
Enter Username:guest
Enter Password:guest123
Binding name:`java:comp/env/ejb/SimpleSavingsAccount`
Application threw an exception:java.lang.NoClassDefFoundError: SavingsAccountHome
Unbinding name:`java:comp/env/ejb/SimpleSavingsAccount`
Not sure why i am getting the exception. -
How to start Bea 9 asynchronously with Ant?
Unfortunately the whole text is condensed because of a forum bug. I hope, you still read it.
With Bea 8 it was possible to start the Bea application server asynchronously with Ant.
But I couldn't start <b>Bea 9</b> asynchronously with Ant. I get this error:
<pre>
spawn does not allow attributes related to input, output, error, result
spawn also does not allow timeout
finally, spawn is not compatible with a nested I/O <redirector>
</pre>
This is my Ant target:
<pre>
<target name="start_weblogic" description="Start Bea Weblogic asynchronously">
<exec executable="C:\bea\user_projects\domains\FooBar\bin\startWebLogic.cmd"
dir="C:\bea\user_projects\domains\FooBar"
failonerror="true"
spawn="true" />
</target>
</pre>
Why doesn't it work? What Ant script I need to start Bea 9 application server <b>asynchrously</b>?
I need this for our Daily Build. In the middle of the automatical building process the application server needs to be started <b>automatically</b>.If you close Firefox while in full screen mode then Firefox should reopen in full screen mode the next time.
That choice is saved in the localstore.rdf file in the profile folder.
*http://kb.mozillazine.org/localstore.rdf
Maybe you are looking for
-
How do I get my MX420 to print out a fax that is in its memory?
How do I get my MX420 to print out a fax that is in its memory?
-
How to create the timeline chart in SSRS 2008
Hello Everyone!! How to create basic timeline chart with x asix as month and show project start date as marker on this in ssrs reports Which type of chart i should use and any sample link? Something like in below link Timeline image
-
How to display a static drop down list for af:query
Hi can anyone tell how to display a static drop down list in af:query panel. JDeveloper version 11.1.1.5.0 Thanks in advance
-
But there was until very recently. The difference is about 100 times what Time Machine says is needed, and I know I didn't add that much stuff in the course of a few days.
-
Dbx: Unable to start the JVM
I am trying to debug a Java class file using dbx. I would like to use this new feature that allows you switching between Java and C modes within the same debugger. However, when I try to execute command "debug myclass.class" in dbx, it complains that