Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3424758
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T06:30:44+00:00 2026-05-18T06:30:44+00:00

I am working on a NANT build project to build a VS project. One

  • 0

I am working on a NANT build project to build a VS project. One of the build file has a property definition like this:

<property name="App.dir" 
  value ="${directory::get-current-directory()}\Source\App"/>

This property value has been used in many other places. For example:

<exec program=".\test.exe"  workingdir=".">
  <arg line="${App.dir}\project1\resources\res1.resx /arg2"/>

Here I need to use <arg line=…> instead of <arg value=…> is to pass specified 2 arguments to text.exe.

when I build this NANT project on another developer’s machine, I got a build failure. Finally I found out that the ${App.dir} on that developer’s machine is a path in long-form and there is a space in the path. As a result, the arguments to text.exe were actually 3 or more.

I am not sure if there is any way to convert the ${App.dir} path to short name with no spaces:

<property name="App.dir" value ="????"/>

where ???? is something to convert “${directory::get-current-directory()}\Source\App” to a path name in a short-form. Is there any way to do that?

I am using NANT in Windows XP. In Unix/Cgywin, there is one function to get dos name:

cygpath::get-dos-path

Can I use this one in my NANT build file?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T06:30:45+00:00Added an answer on May 18, 2026 at 6:30 am

    Use <arg value=””>, from the NANT docs:

    value – A single command-line argument; can contain space characters.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The project I'm currently working on uses Nant build scripts for the continuous integration
I have 2 build configurations in one project: Build & Test Code Deploy Code
I have a simple NAnt build file, which attempts to perform an update from
I've already got a NAnt build script that builds/runs tests/zips web project together, etc.
I'm working on a mainly Java based project, that also has a couple of
I've been working on training myself in the ways of using nAnt over the
Working on my first Android app here. I've searched and tried everything I can
Working with an api and I need to one of the first responses alongside
Working on a project at the moment and we have to implement soft deletion
How can I assign to trunk.dir property a relative path to the trunk location?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.