Java Mailing List Archive

http://www.junlu.com/

Subjects
Home
mod jk2 https
Donation of JAXP 1 3 Sources to Apache
R annoyances
RE: Finding out when the aspnet admin worker process has recycled
Favorite Linux Distribution
eigenvalues of a circulant matrix
Apache Install
Reachin apache from outside
Ant should have an ext directory
Warning: Documentroot doesn 't exist
Can this be Done?
RE: Multilanguage Application
RE: Simple Question On setting up Sub Domain site
Lack of independence in anova()
How to close connection instead of sending 403?
winning the case for ANT
Re: adding php
New Ant GUI 'Ant 's Nest '
Narrowing Down A Strange Problem
Ant Task: sshexec
R Graph Gallery : categorization of the graphs
I 've been hacked, I need some help please
RE: Anyone working with DotNetNuke?
RE: Exception Handling Opinion
hex format
RE: IIS stopped working :(
<for > Build Failed:problem
RE: Separation of Objects from Logic
RE: Tracking pages with long request execution time
sending email to multiple destination
Web Site
ant UI
Easy cut & paste from Excel to R?
Win32 Apache Restart
Improving Tasks
HELP! PLEASE!
RE: Adding Controls to a Page
read table
RE: ASPNET account doesn 't exist!
Best way to uninstall Apache2 on red hat
from win to linux how to web page
XMLParseException changes and creation of XMLLocator2
Re Post: rewrite backslash to forward slash
Target or macrodef?
Page display problem XPSP2
Authentication problems
Dynamic Dictionary Data Type?
Newbie unable access my www from outside
off topic question: Latex and R in industries
Conflict between xtable and Hmisc when using Sweave?
Very old problem without any new solution
mod rewrite help
Basic Authentication question
RE: Code Security
calling ant from java program
prevent double signing
Re: Controlling Copy/Paste/Print
Using R to illustrate the Central Limit Theorem
web server slow too much slow
access to user directories
Links
Home
Official R Project Site
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
calling ant from java program

calling ant from java program

2004-09-09       - By Ashutosh Kumar
Reply:     <<     11     12     13     14     15     16     17  

I am trying to send email from ant. It sends mail but says failed to
initialize  mime type. Even thoughI receive mail , I does not contain
message, only subject is there.
Regds
Ashutosh

-----Original Message-----
From: Olivier Croisier [mailto:Olivier.Croisier@(protected)]
Sent: Friday, August 27, 2004 2:26 PM
To: Ant Users List
Subject: Re: calling ant from java program

> What may be the reason of  project.executetarget throwing nullpointer
> exception?
> regds

Hi

My first idea was that this exception could get thrown if you call the
executeTarget method with a null argument, but this error seems to be
already managed by the BuildException (@(protected) ant javadoc).

[ executeTarget ]
public void executeTarget(java.lang.String Source code of java.lang.String targetName) throws
BuildException
Executes the specified target and any targets it depends on.
Parameters:
  targetName - The name of the target to execute. Must not be
null.
Throws:
  BuildException - if the build failed



So... Another answer would be : your "NullPointerException" occurs if
your Project object is null (java obviously can't call the
"executeTarget" method on a null Project object). Check if your Project
is initialized.

Third clue : the "test_config" string you give as an argument is a valid
String, but its contents may cause an error somewhere in the
executeTarget process, for example if this isn't a valid target name.
Or if the target is only defined as an internal target (no "description"
for it) : I don't know if executeTarget sees them.


best regs


--
CROISIER Olivier
Software Engineer
Thales IS - ANS
olivier.croisier@(protected)

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.