[Nant-users] Problem with filterchain

2005-04-29 Thread Torben Rohde

Hi all,
I'm having trouble getting the filterchain
feature to work. A description of the problem can be found at:

http://www.experts-exchange.com/Programming/Programming_Languages/C_Sharp/Q_21405718.html

Short summary: The filterchain tag seems
to be totally ignored. I have also tried upgrading to the newest NAnt version
(NAnt 0.85 (Build 0.85.1932.0; rc3; 16-04-2005)), but it didn't make any
difference.

Any help or hints is greatly appreciated.

Kind regards

Torben Rohde
Subsero A/S

http://www.subsero.dk/

Vedr.: [Nant-users] FilterChain not working

2005-06-02 Thread Torben Rohde

Hi Rahul,
I have experienced a similar issue -
which turned out to be because I was using an older NAnt version, filterchain
is a relatively new feature - I think it came with 0.85.
NAnt will not crash in earlier versions,
it just ignores the extra tags.

Torben Rohde
Subsero A/S
Denmark






rahul rane <[EMAIL PROTECTED]>

Sendt af: [EMAIL PROTECTED]
02-06-2005 09:20




Til
nant-users@lists.sourceforge.net


cc



Emne
[Nant-users] FilterChain not working








Hi,

I am trying to copy a file to antoher file. But while
copying i use a filter chain to change some of the
tokens with a value while copying.

The copy is working fine but the filterchain does not
work.

The code i am using is as follows:



                  
                
                 
overwrite="true">
                
                 
               

                
                 
                 
          
                
                 
                 
              
                
                 
               
            
                
                 
       
                
                 
                

        




Any help/pointers?


                


                

                
                 
__
Free antispam, antivirus and 1GB to save all your messages
Only in Yahoo! Mail: http://in.mail.yahoo.com


---
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
___
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users



Re: [NAnt-users] Input prompting ...

2009-11-03 Thread Torben Rohde
I once did the bat-file-method as Bob suggests, but I also wrapped it in a
VB script (not the ultimate best-practice but it worked :-)

Here's my code for inspiration if you decide to take that route:

.vbs file:

   dim newline : newline = Chr(13) & Chr(10)

   dim strApplicationMetaname
   strApplicationMetaname = ""


   '--- Main program run ---

  strApplicationMetaname = GetApplicationMetanameFromUser

  If strApplicationMetaname = "" Or IsNull(strApplicationMetaname) Then
MsgBox "No application name specified - aborting build " +
   strApplicationMetaname, vbOKOnly + vbExclamation, "No application name
   specified"
  Else
Call CallBuild(strApplicationMetaname)
  End If


   '--- Misc ---

  Function GetApplicationMetanameFromUser()

dim userInput
userInput = InputBox("Enter the name of the application
   instance you wish to build (e.g. MyCompany)" + newline + "(this will
   determine names of services etc. - e.g. if you enter MyCompany, the
   merger will be named MergerMyCompany)", "Enter application metaname")
GetApplicationMetanameFromUser = userInput

  End Function


  Function CallBuild(strApplicationMetanameParm)

dim objWSHShell
Set objWSHShell = WScript.CreateObject("WScript.Shell")
objWSHShell.CurrentDirectory = ".\merger\"
Call objWSHShell.Run("build_and_deploy.bat " +
   strApplicationMetanameParm + " v1_2_3", 1, true)

  End Function

.bat file called by VB script:

   @ECHO OFF
   IF "%1" == "" GOTO NoNameSpecified
   IF "%2" == "" GOTO NoVersionSpecified

   nant /f:builds/merger_build_and_deploy.nant.build -D:MergerName=%1
   -D:MergerVersion=%2

   GOTO EndProgram


   :NoNameSpecified
   ECHO ---
   ECHO This bat file can not be run directly. (name not set)
   ECHO Use the corresponding VBScript "merger_build_and_deploy.vbs"
   instead
   ECHO ---
   GOTO EndProgram

   :NoVersionSpecified
   ECHO ---
   ECHO This bat file can not be run directly. (version not set)
   ECHO Use the corresponding VBScript "merger_build_and_deploy.vbs"
   instead
   ECHO ---
   GOTO EndProgram

   :NoNameSpecified


   :EndProgram
   pause

Torben Rohde
Subsero A/S



   
 Bob Archer
   Til 
   "Parrish, Ken"  
 03-11-2009 15:49  ,   
   "nant-users@lists.sourceforge.net"  
 
cc 
   
  Emne 
   Re: [NAnt-users] Input prompting
   ... 
   
   
   
   
   
   




The only thing I could think would be to exec a bat file that prompts for a
value and writes it to a text file or something. I pretty much think nant
is designed for non-attended use.

BOb


From: Parrish, Ken [mailto:kparr...@gomez.com]
Sent: Tuesday, November 03, 2009 9:34 AM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] Input prompting ...

Nant Users,

Is there a task that can be used to prompt a user for input of a property?
I’d like to design some tasks which will prompt the user for input of a
property if the property was not specified on the command line.  I looked
in both Nant and NantContrib and didn’t see anything.  Am I missing
something?

Ken Parrish
Gomez, Inc.
--

Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
NAnt-users mailing list
NAnt-u