B2B Data Exchange
- B2B Data Exchange 10.2
- All Products
<example:copy destinationDirectory=”/destdir”> <fileset dir=”/mydir”> <include pattern=”*.pdf” /> </fileset> </example:copy>
private List<FileSet> filesetElements = null; public FileSet createFilesetElement() { if (filesetElements == null) { filesetElements = new ArrayList<FileSet>(1); } FileSet fs = new LocalFileSet(this); filesetElements.add(fs); return fs; } public void removeFilesetElement(FileSet fileSet) { filesetElements.remove(fileSet); } public List<FileSet> getFilesetElements() { return filesetElements; }
<?xml version="1.0" encoding="UTF-8" ?> <projectComponent name="CopyTask"> <label>Example Copy Task</label> <description>A simple task for copying a file from one directory to another. </description> <tabPanel name="main"> <tab name="basic"> <attribute name="sourceFile"> <label>Source File</label> <description>Specify the file to copy. </description> <fieldType>localOrNetworkFile</fieldType> <required>true</required> <cols>60</cols> </attribute> <attribute name="destinationDirectory"> <label>Destination Directory</label> <description>Specify the directory to which the source file should be copied. </description> <fieldType>localOrNetworkDirectory</fieldType> <required>true</required> <cols>60</cols> </attribute> </tab> <tab name="control" /> <tab name="onError" /> </tabPanel> <subelement name="fileset"> <label>FileSet</label> <description>Specify a directory of files to copy</description> </subelement> </projectComponent>