Questions tagged [fileset]

A fileset in Apache Ant is a structure to combine a group of files and perform actions on them.

In Apache Ant, a FileSet is a structure to group a number of files. Many Ant tasks work on filesets, e.g. copy, delete, ...

Usually build-scripts use filesets to select a number of files that should be used for operations later on.

Similar concepts in Ant are DirSet and PatternSet.

See the documentation for details

118 questions
0
votes
1 answer

Exclude files in ant-migration tool while deploying

I am new to salesforce. We are using ant-migration tool. There are a few classes/dashboards/triggers that we are trying to exclude using file sets. All of the below folders are inside src.
B.T Anand
  • 549
  • 1
  • 13
  • 26
0
votes
1 answer

How to search for a file in a directory and read its names and print out largest numbered file using Ant?

I need to develop an ANT script that reads a directory content. The files in this directory are numbered along with its name. I have to find the largest numbered file in this directory and return its name and the number. For example: >>…
Dilshad Abduwali
  • 1,388
  • 7
  • 26
  • 47
0
votes
1 answer

Apache Ant: Resolve path with wildcards to FileSet

Given an absolute path containing wildcards, such as C:\Program Files\VC\Redist\x64\Microsoft.*.CRT\*.dll, how can this path be resolved to a FileSet? Consider that the path is stored in property myPath, was supplied by the user, may contain spaces…
Cybran
  • 2,203
  • 2
  • 17
  • 34
0
votes
1 answer

Delete a folder using starts with in ANT

I am comparing 2 folders A and B, and wanted to delete folders and jars present in B which are not present in folder A. I have written the logic to get needed files to delete, but i do not wanted to delete the directory and jars starting with…
Kivi
  • 485
  • 1
  • 9
  • 26
0
votes
1 answer

ANT delete fails if fileset exclude is empty

This ANT delete task functions perfectly if the directory contains either FOO.xml or BAR.xml (or both), but will not return successfully if they do not exist.
Mr S
  • 458
  • 3
  • 7
  • 15
0
votes
2 answers

Ant fileset's "dir" missing from absolute path when using a mapper

I've been trying to write an Ant task to "compile" Sass scripts in my project using the apply task but I kept getting a "No such file or directory" error. I thought it might have been caused by spaces in the buildpath so I went through the trouble…
spaaarky21
  • 6,524
  • 7
  • 52
  • 65
0
votes
2 answers

How to create an Ant's symlink with wildcard?

I've tried to create a symlink like: however, the line doesn't expand the wildcard but creates a link which points literally to drupal-7.*, not to…
kenorb
  • 155,785
  • 88
  • 678
  • 743
0
votes
1 answer

Jenkins: MSTest: Unable to specify mutiple test result files to be converted to JUnit XML format

While automating build process using Jenkins, we are using MSTest plugin to convert the generated *.trx files to JUnit xml format so that it can be shown in build report. This plugin is working fine with a single file. eg: MyProject/TestResults.trx.…
Ashutosh Singh
  • 609
  • 6
  • 21
0
votes
0 answers

What would cause ANT Attrib ReadOnly on a FileSet to operate super slowly?

When this Ant target runs, it takes over 30 minutes to complete on a directory with only ~2k files. I thought something was…
0
votes
1 answer

How to console output all files from selected fileset?

I just started working with Ant scripts so i'm not sure I'm asking the correct question but here it goes: I have a script that is suppose to find a RegEx pattern from individual files on a specified directory and replace it, but I want to output a…
ROOTKILL
  • 575
  • 1
  • 4
  • 7
0
votes
1 answer

How to copy the content of sub-dir without a custom Ant task?

I'm working with Jenkins 2 and trying to copy artifacts between jobs and in turn to an S3 bucket. I have a simple web build which produces artifacts in /dist/public which I'd like to upload into the S3 bucket. So once the job completes, I have a…
timothyclifford
  • 6,799
  • 7
  • 57
  • 85
0
votes
1 answer

Nant Build script undifined Issue

I have the following code in a nant build script:
Desmond
  • 31
  • 3
0
votes
3 answers

Compiler warnings plugin: Fileset excludes

We are using Hudson as our build machine and I am trying to configure the excludes fileset for the Compilier Warnings plugin. Hudson parses the build log to determine warnings/errors and our Clover scripts output duplicates of real warnings. As…
Syntax
  • 2,155
  • 2
  • 23
  • 34
0
votes
2 answers

Is there a common way to access the resulting fileset of an ANT task?

I'm trying to write a replacement of the integrated task so that it supports passwords using and 7za.exe. The idea is to have a drop-in replacement of the task. The difficulty is, that support so many ways to declare which…
ViToni
  • 882
  • 9
  • 12
0
votes
1 answer

store ANT regex in an excel file

I am creating an ANT script for which I am using a fileset and a regex to get my file and to get an expression in that file. I also need to store the expression in a spreadsheet, which I am not sure how to do it. I have learned somewhere that I…
KNB
  • 21
  • 5