tsarinas sald

I wrote a newversion.xml file trying to add all the file and subdirs of my build dir with only a line using wildcard char *. But this seems not to be correct. see below:

<Files dir="basedir"> <File source="D:\Progetti\My\dyemrp\build_.0.12.7.0\*" /> </Files>

is there a way to add all the file and subdirs without specifying each one?

ThanksAlessandro

No. But that's a good idea though. We'll add that to wyBuild in the future.

In the meantime you'l have to specify every file you want to include explicitly.

Ok. I'll do that.

Thanks.Alessandro

Following there is the snippet I used to create the new version XML file.Note the following property must be set:app.ver = the application version numberchanges = the description of the changes (release note)out_ver.dir = the build output folder

	    <echo file="${newVersionFile}" append="false">				<![CDATA[<?xml version="1.0" encoding="utf-8"?>	<Versions>	<AddVersion>		<Version>${app.ver}</Version>		<Changes>${changes}</Changes>		<InheritPrevRegistry />		<Files dir="basedir">				]]>		</echo>		<foreach item="File" in="${out_ver.dir}${app.ver}" property="fileName">  			<in>				<items>					<include name="**" />				</items>			</in>			<do>				<echo file="${newVersionFile}" append="true">			<![CDATA[			<File source="${fileName}"/>]]>				</echo>			</do>		</foreach>		<foreach item="Folder" in="${out_ver.dir}${app.ver}" property="foldername">			<property name="subdir" value="${foldername}"/>					<call target="subdirfile"/>		</foreach>		<echo file="${newVersionFile}" append="true">		<![CDATA[			</Files>			<Files dir="commappdata">				<File source="D:\Progetti\My\dyemrp\checkdb.txt" />			</Files>		</AddVersion>	</Versions>]]>		</echo>

+1 for this feature.

could you post the rest of the script? It looks like you are calling the subdirfiles task recursively?

We've added the ability to add a folder's complete contents via commandline. Use the new <Folder> element in the XML file. See the updated article on building updates from commanline.

Also, in wyBuild 2.6.10, the commandline builder has been separated from wyBuild.exe. Use the new "wybuild.cmd.exe".