You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Kevin LaVergne <kl...@comcast.net> on 2003/05/20 23:48:26 UTC
Re: EJB Clients Task
Hi,
Did you ever find a solution to your question? I know the ejb-jar.xml file
provides a way to specify the name of the client jar you want to use (the
ejb-client-jar element), but the ejbjar task does nothing with it.
Kevin
On Wed, 26 Mar 2003 13:36:06 +0100, <Ju...@t-systems.com> wrote:
> Hi,
>
> is there an EJB Stub Generate Task available? I didn found one. :-(
>
>
> Juraj
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
Re: Ant build shows BUILD SUCCESSFUL even for no java sources.
Posted by Antoine Levy-Lambert <le...@tiscali-dsl.de>.
Hi Sunil,
here is a sample which does what you want :
<project name="emptyfileset" default="emptyfileset">
<target name="emptyfileset">
<!-- you just need to adapt the fileset here -->
<fileset dir="/temp" includes="**/*.java" id="ref.emptyfileset"/>
<pathconvert targetos="unix" property="property.emptyfileset"
refid="ref.emptyfileset"/>
<condition property="fileset.isempty">
<equals arg1="${property.emptyfileset}" arg2=""/>
</condition>
<fail if="fileset.isempty" message="empty fileset"/>
</target>
</project>
Antoine
----- Original Message -----
From: "sunil singh" <su...@oracle.com>
To: "Ant Users List" <us...@ant.apache.org>
Sent: Wednesday, May 21, 2003 12:10 AM
Subject: Ant build shows BUILD SUCCESSFUL even for no java sources.
> Hi,
>
> Doing an ant build for a project, the build is shown to be successful
> even though the source folder is empty and there are no java sources
under
> it.
>
> For example:
> If we have a build.xml file and an empty src folder to which the
> build.xml refers, and there are no source files under it.
>
> MyProject/build.xml
> MyProject/src/project/calculations/...
>
> Now the ant build sees this as not an issue, and happily claims that the
> Build is successful, whereas there was nothing to build(compile) in first
> place.
> Is there a way we can make ant to recognise this as a problem and show a
> Build Failure.
> [ I am looking for native ant solution, I know that we might embed other
> perl scripts etc. in the build.xml to look for *.java and complain if it
> doesn't see any
> there ]
>
> Thanks! for any help.
> Sunil--
>
>
>
>
>
----------------------------------------------------------------------------
----
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
Re: Ant build shows BUILD SUCCESSFUL even for no java sources.
Posted by Sebastien Blanc <Se...@alcatel.com>.
Hi !
javac does behave that way.
if u want to drop it, u can define a fileset of *.java and check if it is empty
or not (check <condition>), then echo watever u want, otherwise launch the
<javac>.
seb.
sunil singh wrote:
> Hi,
>
> Doing an ant build for a project, the build is shown to be successful
> even though the source folder is empty and there are no java sources under
> it.
>
> For example:
> If we have a build.xml file and an empty src folder to which the
> build.xml refers, and there are no source files under it.
>
> MyProject/build.xml
> MyProject/src/project/calculations/...
>
> Now the ant build sees this as not an issue, and happily claims that the
> Build is successful, whereas there was nothing to build(compile) in first
> place.
> Is there a way we can make ant to recognise this as a problem and show a
> Build Failure.
> [ I am looking for native ant solution, I know that we might embed other
> perl scripts etc. in the build.xml to look for *.java and complain if it
> doesn't see any
> there ]
>
> Thanks! for any help.
> Sunil--
>
> ------------------------------------------------------------------------
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
Ant build shows BUILD SUCCESSFUL even for no java sources.
Posted by sunil singh <su...@oracle.com>.
Hi,
Doing an ant build for a project, the build is shown to be successful
even though the source folder is empty and there are no java sources under
it.
For example:
If we have a build.xml file and an empty src folder to which the
build.xml refers, and there are no source files under it.
MyProject/build.xml
MyProject/src/project/calculations/...
Now the ant build sees this as not an issue, and happily claims that the
Build is successful, whereas there was nothing to build(compile) in first
place.
Is there a way we can make ant to recognise this as a problem and show a
Build Failure.
[ I am looking for native ant solution, I know that we might embed other
perl scripts etc. in the build.xml to look for *.java and complain if it
doesn't see any
there ]
Thanks! for any help.
Sunil--