I am trying to write java code to use the
API rather than writing a build.xml.I am doing this for testing purpose so i
have hardcoded. The following line in the code throws NullPointerException
while executing the code.The class_path is of type Path.But while converting
class_path to Str
Hey,
I have tried both referencing it but file with the src attribute and
by putting in the sql tag. The file works with the -f option on the
command line with psql (also with redirection in).
Cheers,
Gareth
Scot P. Floess wrote:
Sorry sounds like smart alec question...but there is not
Hi all,
I am having a problem sucking in a stored procedure. I works fine on
the command line to psql but gives the error
org.postgresql.util.PSQLException: ERROR: unterminated dollar-quoted
string at or near
$update_track_rating_average$
DECLARE
current_average_rating
I am using bea-weblogic 7.0SP3 version,so there is no possibility of
using the ant task provided by bea-weblogic 9.0
-Original Message-
From: Anderson, Rob (Global Trade) [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 16, 2006 9:31 PM
To: Ant Users List
Subject: RE: exit from the script ru
Can you post the portion of your build.xml that produces the error you
mention below.
-Rob A
> -Original Message-
> From: Gareth Reakes [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 16, 2006 9:15 AM
> To: Ant Users List
> Subject: postgres stored procedure sql task problem
>
> Hi all,
I seem to remember having some issue creating stored procs and tables,
etc defined in a file with the task. I think what I had to do is
escape each line like:
create proc foo; \
... \
...
Of course disregard the terrible markup above ;)
Its been quite a few years so I don't remember all the
Hey,
I have tried both referencing it by file with the src attribute
and by putting in the sql tag. The file works with the -f option on the
command line with psql (also with redirection).
Cheers,
Gareth
Scot P. Floess wrote:
Sorry sounds like smart alec question...but there is not ind
We're looking to accomplish the following using ant's perforce tasks,
and any alternative way of doing it:
1. Check out a folder called /dist from perforce server. /dist contains
other folders and subfolders.
*2. Delete and recreate the /dist folder that was checked out into our
local workspac
Sorry sounds like smart alec question...but there is not indication by
what you mean when you say, "sucked in"
Scot P. Floess wrote:
Gareth:
So, you are trying to "suck" this in via ant?
Gareth Reakes wrote:
Hi all,
Apologies if this ends up being a duplicate - It seems this email was
not
Gareth:
So, you are trying to "suck" this in via ant?
Gareth Reakes wrote:
Hi all,
Apologies if this ends up being a duplicate - It seems this email was
not registered
I am having a problem sucking in a stored procedure. I works fine
on the command line to psql but gives the error
o
Hi all,
Apologies if this ends up being a duplicate - It seems this email was
not registered
I am having a problem sucking in a stored procedure. I works fine
on the command line to psql but gives the error
org.postgresql.util.PSQLException: ERROR: unterminated dollar-quoted
string at
I believe the functionality you are looking for is already available in
the Ant tasks provided by BEA. Please see the BEA documentation...
http://edocs.bea.com/wls/docs90/programming/ant_tasks.html
Similar tasks exist for earlier versions of Weblogic also. If you are
trying to start managed serve
I'm not sure what you are trying to do with this code, or what the
context is. Where are you wrong? To start with, you have hardcoded a lot
of things into your code. Are you trying to write java code to use the
API rather than writing a build.xml?
-Rob A
> -Original Message-
> From: subir
Steve Loughran wrote:
or you cp -r to some intermediate place, strip out the junk you dont
want then do another cp -r of the stuff you like. Nasty, but
roughly what I do with some of my deployments where I want almost but
not everything on the classpath to get redistributed. Rather than
decla
Mikhail Fedotov wrote:
.
otherwise, I'd try creating a good cp -r command, possibly with .
We tried that (without "-r"), it does not work, some jvms tend to
produce core dumps when they see a lot of "cp"s. We need to run ok even
on those. And we can't
use "-r" as we need to exclude some stuff.
Steve Loughran wrote:
I need an alternative to standard copy task . The standard one does
not preserve permissions on unix systems, can not be told to create
hardlinks if possible instead of copying,
etc etc, and I need all that. I'm planning to get standard copy task
and modify it to produce s
Hi
While i am executing the following the method setClasspath of
Taskdef getting NullPointerException, But the same method for Javac is O.K.
Where i am wrong?
My Code
String base_dir = Host.getBuildTemp();
Project p = new Project();
Mikhail Fedotov wrote:
Steve Loughran wrote:
The alternative is creating and binding by hand:
MyTask task=new MyTask();
task.setProject(getProject());
task.setName(getName());
task.setLocation(getLocation());
task.init();
This is how everything in Ant1.7 does it, though there we cheated add
a
>The problem is that I have a lot of filesets, and each of them
>must be copied to its own directory. This way I'm getting a
>lot of instances of modified copy task, which in turn create
>many instances of shellscipt task, which do a lot of
>shell/system calls. This last bit makes the whole sys
Steve Loughran wrote:
The alternative is creating and binding by hand:
MyTask task=new MyTask();
task.setProject(getProject());
task.setName(getName());
task.setLocation(getLocation());
task.init();
This is how everything in Ant1.7 does it, though there we cheated add
added Task.bindToOwner(Ta
>what happens when mytask2 calls log() in its execute method if you
>*dont* call setProject(0
I would expect a NPE :-)
That`s the binding would help, but AFAIK Ant does not do this
automatically.
(Only for ProjectComponents that are ed.)
Jan
[EMAIL PROTECTED] wrote:
If you call the tasks methods directly it behaves just a normal java
class.
Ant doesnt do any dependency injection ...
It does one, setProject().
Mmh - really?
MyTask1 extends Task {
MyTask2 t = new MyTask2(); // t.getProject() ???
}
MyTask2 ex
>> If you call the tasks methods directly it behaves just a normal java
>> class.
>> Ant doesnt do any dependency injection ...
>
>It does one, setProject().
Mmh - really?
MyTask1 extends Task {
MyTask2 t = new MyTask2(); // t.getProject() ???
}
MyTask2 extends Task {}
Jan
-
[EMAIL PROTECTED] wrote:
I have two existing tasks. I want to modify the first task so
that it runs the second one as part of its work.
I have code which creates ant build file with parameters for
the second task and then uses new instance of AntScenario to
run that file. The question is, can
Mikhail Fedotov wrote:
Hi all,
I have two existing tasks. I want to modify the first task so that it
runs the second one as part
of its work.
I have code which creates ant build file with parameters for the second
task and then uses
new instance of AntScenario to run that file. The question
>I have two existing tasks. I want to modify the first task so
>that it runs the second one as part of its work.
>
>I have code which creates ant build file with parameters for
>the second task and then uses new instance of AntScenario to
>run that file. The question is, can I do the same thing
Hi all,
I have two existing tasks. I want to modify the first task so that it
runs the second one as part
of its work.
I have code which creates ant build file with parameters for the second
task and then uses
new instance of AntScenario to run that file. The question is, can I do
the same t
[EMAIL PROTECTED] wrote:
Why do you put libs in ANT_HOME/lib ?
All classes there are added to Ants classpath by Ants launcher class.
And only tasks and external libraries for tasks make little sence
here.
Because the ant library folder is the obvious place to
put custom ant tasks.
Ok, thats
Hi
Thanks for your response.
As many people said that sshexec has a bug in apache ant 1.6.1.I have
migrated to apache ant 1.6.5 so now I am using jdk1.3 and apache ant
1.6.5 and jsch-0.1.28.In this case also the command executes in the
remote machine successfully but it throws Build Failed.
29 matches
Mail list logo