|
208 | 208 | <call target="coverage-report" />
|
209 | 209 | </target>
|
210 | 210 |
|
211 |
| - <target name="sources"> |
212 |
| - <property name="source.tmpdir" value="${build.dir}/tmp-src" /> |
213 |
| - <copy todir="${source.tmpdir}"> |
214 |
| - <fileset> |
215 |
| - <!-- copy dlls used by this build --> |
216 |
| - <include name="${lib.dir}/**" /> |
217 |
| - |
218 |
| - <!-- copy all of the NHibernate source --> |
219 |
| - <include name="src/NHibernate*/**" /> |
220 |
| - <include name="src/*.*" /> |
221 |
| - |
222 |
| - <include name="build-common/**" /> |
223 |
| - |
224 |
| - <include name="*.build" /> |
225 |
| - <include name="LICENSE.txt" /> |
226 |
| - <include name="releasenotes.txt" /> |
227 |
| - <include name="README.md" /> |
228 |
| - |
229 |
| - <!-- exclude ReSharper stuff --> |
230 |
| - <exclude name="**/_ReSharper*/**" /> |
231 |
| - <exclude name="**/*.resharperoptions" /> |
232 |
| - <exclude name="**/*resharper*" /> |
233 |
| - |
234 |
| - <!-- exclude VS.NET stuff --> |
235 |
| - <exclude name="**/*.suo" /> |
236 |
| - <exclude name="**/*.user" /> |
237 |
| - <exclude name="**/bin/**" /> |
238 |
| - <exclude name="**/obj/**" /> |
239 |
| - </fileset> |
240 |
| - </copy> |
241 |
| - </target> |
242 |
| - |
243 |
| - <target name="sources-zip" depends="init sources"> |
244 |
| - <zip zipfile="${build.dir}/NHibernate-${project.version}-src.zip"> |
245 |
| - <fileset basedir="${source.tmpdir}"> |
246 |
| - <include name="**/*" /> |
247 |
| - </fileset> |
248 |
| - </zip> |
| 211 | + <target name="sources-zip" depends="init"> |
| 212 | + <exec program="git" commandline="archive HEAD --format zip --output "${build.dir}/NHibernate-${project.version}-src.zip""/> |
249 | 213 | </target>
|
250 | 214 |
|
251 | 215 | <target name="binaries-zip" depends="init bin-pack">
|
|
0 commit comments