Old 2nd March 2007, 00:23   #1
lmoulder
Junior Member
 
Join Date: Mar 2007
Posts: 1
Question NSIS and Ant

I've recently been handed a project that uses NSIS and Ant to create an installer and have run into a few issues I'm hoping someone can help me out with.

We're currently using an <exec> task to create the installer and that's working fine. However, as soon as I use a <sshexec> or <scp> task to try to move the files to another server, Ant hangs at the connection phase. I've tried to separate the building and publishing into different targets that call each other, and that doesn't do any good. I've tried calling them both from a single ant call... no good.

It seems like the only way to get around it is to have two completely separate Ant calls, one to do just the building and another for just the uploading. And while I normally wouldn't have a problem with this, the build system that this has to go into does so I really need to get it all to happen during a single call.

Has anyone seen or heard of anything like this before?

I'm running Java 1.6, Ant 1.7, NSIS 2.24, jsch 0.1.3.1.

Thanks,
Leigh
lmoulder is offline   Reply With Quote
Old 2nd March 2007, 08:59   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
You'd probably get a better answer in an Ant related forum as this seems like a problem with Ant not waiting for makensis. The only thing I can suggest is that you take a look at projects using Ant for NSIS, like NSIS Ant Task.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump