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 7397841
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T03:47:54+00:00 2026-05-29T03:47:54+00:00

I’m publishing a website by copying a fileset which should exclude .cs and other

  • 0

I’m publishing a website by copying a fileset which should exclude .cs and other files. I’ve tested my NAnt script from the command line and it works fine but when it is called from CCNet, it copies all files, completely ignoring the excludes on my fileset. Any ideas what’s going wrong here?

Calling my NAnt build file from from CruiseControl.Net.

<tasks>
  <nant>
    <executable>$(nant.exe)</executable>
    <baseDirectory>$(build-dir)\$(project-dir)</baseDirectory>
    <buildArgs></buildArgs>
    <nologo>true</nologo>
    <buildFile>aview-dev.build.xml</buildFile>
    <targetList>
      <target>go</target>
    </targetList>
    <buildTimeoutSeconds>300</buildTimeoutSeconds>
  </nant>
</tasks>

The chunk of the NAnt build file that doesn’t seem to work (part of my ‘publish’ step).

<copy todir="${publish.path}" includeemptydirs="false">
  <fileset basedir="${src.path}" defaultexcludes="true">
    <include name="**/**" />
    <exclude name="**.csproj*"/>
    <exclude name="**.cs"/>
    <exclude name="**.vb"/>
    <exclude name="**.sln"/>
    <exclude name="**/obj/**"/>
  </fileset>
</copy>

The same NAnt file works fine when run directly from the command prompt.

nant -buildfile:test.build.xml -debug

I’m using NAnt 0.91 and CCNet 1.6.7981.1

  • 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-29T03:47:55+00:00Added an answer on May 29, 2026 at 3:47 am

    After running the NAnt script in debug mode and checking that the .vb files were not actually getting copied by NAnt, I went back to my CCNet configuration. I realized that I had defined a buildpublisher block in my ccnet.config and was using that in my ccnet project file. After the NAnt task correctly copied the files, the buildpublisher task re-copied everything without any filter (including .vb files, the .svn directory, etc).

    <buildpublisher>
      <sourceDir>C:\myprojects\project1\src</sourceDir>
      <publishDir>C:\myprojects\project1\src\published</publishDir>
      <useLabelSubDirectory>false</useLabelSubDirectory>
      <alwaysPublish>false</alwaysPublish>
    </buildpublisher>
    

    Removing the buildpublisher task fixed the problem.

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

Sidebar

Related Questions

I used javascript for loading a picture on my website depending on which small
I have a text area in my form which accepts all possible characters from
I have a bunch of posts stored in text files formatted in yaml/textile (from
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
I am trying to understand how to use SyndicationItem to display feed which is
I am currently running into a problem where an element is coming back from
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
Does anyone know how can I replace this 2 symbol below from the string

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.