Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > NAnt
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
NAnt For discussing the NAnt .NET build tool. When posting a question, please specify the version of NAnt you are using.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the NAnt section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old December 14th, 2012, 02:18 AM
Registered User
Points: 12, Level: 1
Points: 12, Level: 1 Points: 12, Level: 1 Points: 12, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default To write nant build script for js files

Hi all,
I'm just a beginner in Nant build scripting and i was given a task of doing a build for my project and i need to write a script for 100 js files in a folder called 'scripts'. I dont have any idea of writing even though its in xml i'm clear about the flow.
Please help me with a script.
thanks in advance
Reply With Quote
  #2 (permalink)  
Old December 14th, 2012, 06:58 AM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,413
Thanks: 0
Thanked 16 Times in 16 Posts
Default Need more detail

I'm afraid you're going to need to provide a lot more detail to your question. First of all, what is it exactly that you need to do with these JS files? I've never known of anyone needing to do any kind of "build" of JS.

Generally with NAnt you call out to some compiler or processor to do the actual work required. You can call out to any external program to do the work so you just need to find the right external tool to process the files in the way you need.

Have you looked at the NAnt documentation? I've found that to quite sufficient to get going with most tasks.
__________________
-Peter
compiledthoughts.com
twitter/peterlanoie
Reply With Quote
  #3 (permalink)  
Old December 17th, 2012, 12:16 AM
Registered User
Points: 12, Level: 1
Points: 12, Level: 1 Points: 12, Level: 1 Points: 12, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by planoie View Post
I'm afraid you're going to need to provide a lot more detail to your question. First of all, what is it exactly that you need to do with these JS files? I've never known of anyone needing to do any kind of "build" of JS.

Generally with NAnt you call out to some compiler or processor to do the actual work required. You can call out to any external program to do the work so you just need to find the right external tool to process the files in the way you need.

Have you looked at the NAnt documentation? I've found that to quite sufficient to get going with most tasks.






I have a project for which i have to do a build. I'm using cruise control as the build tool. But i'm not sure of integrating both nant script and cruise control.
In my project we have a set of files, scripts for which i have to do a build. As I'm a beginner I dont know where to start. I have read the NAnt documentation and installed it.
The NAnt script is in XML and the flow for doing the build is not clear to me. Also I'm using Dynamsoft SCM as version control system and its working directory from where I have to fetch my project files for doing the build. finally the NAnt script should be linked with cruise control.net to do the build. Can anyone please help me atleast with a sample script?
Reply With Quote
  #4 (permalink)  
Old December 17th, 2012, 09:43 PM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,413
Thanks: 0
Thanked 16 Times in 16 Posts
Default Still need more detail

Quote:
Originally Posted by aa_dev View Post
I have a project for which i have to do a build.
What is the "build" you have to do? Are you compiling code? Copying files? You mention js files, but what do you need to do with them? Unless these are js files that are being compiled for some technology with which I'm familiar, which is very possible, I can't imagine what you'd need to do with them aside from copy or zip them into some alternate structure.

Quote:
Originally Posted by aa_dev View Post
I'm using cruise control as the build tool. But i'm not sure of integrating both nant script and cruise control.
Cruise Control has pretty decent documentation that explains how to call its various tasks, including NAnt build scripts.

Quote:
Originally Posted by aa_dev View Post
The NAnt script is in XML and the flow for doing the build is not clear to me.
The flow of the build will be particular to your project and needs. You need to decide what steps you have to perform and fashion the appropriate NAnt tasks to perform those steps.

Quote:
Originally Posted by aa_dev View Post
finally the NAnt script should be linked with cruise control.net to do the build. Can anyone please help me atleast with a sample script?
Again, CruiseControl has samples of configuring an integration project with calls to NAnt. Details can be found here: http://ccnet.sourceforge.net/CCNET/NAnt%20Task.html
__________________
-Peter
compiledthoughts.com
twitter/peterlanoie
Reply With Quote
  #5 (permalink)  
Old December 20th, 2012, 01:32 AM
Registered User
Points: 12, Level: 1
Points: 12, Level: 1 Points: 12, Level: 1 Points: 12, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

My project holds these folders which are in C:\myproject:
common,
mobile-html scripts, images etc
db-tables, procedures
data-jquery,
scripts - js scripts
customs, utilities functions

Compile the files and have an .exe file in zip format
How to map these files and do a Nant build script which should be configured in CC.Net

A sample script would help me too

Last edited by aa_dev; December 20th, 2012 at 01:52 AM.
Reply With Quote
Reply


Thread Tools
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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to call js script in c# Cade_Feng BOOK: ASP.NET 4 24-Hour Trainer 0 September 21st, 2010 11:11 PM
How to call js script in C# Cade_Feng BOOK: Professional C# 2008 ISBN: 978-0-470-19137-8 0 September 21st, 2010 11:00 PM
Nant Build for ASP.net Project with C# SanjuBaba NAnt 1 October 15th, 2008 08:24 AM
.js outside script problems Apocolypse2005 Javascript 1 July 25th, 2006 07:33 PM
JS Script help... Thomas82 Classic ASP Basics 2 April 29th, 2005 05:16 AM



All times are GMT -4. The time now is 06:22 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.