forked from clairernovotny/ninject
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PushAllNuget.build
27 lines (26 loc) · 1.11 KB
/
PushAllNuget.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?xml version="1.0" encoding="utf-8"?>
<project name="Ninject" default="build">
<property name="path.base" value="${project::get-base-directory()}"/>
<property name="path.tools" value="${path.base}\tools" dynamic="true"/>
<property name="path.tools.nuget" value="${path.tools}\nuget\nuget.exe" dynamic="true"/>
<property name="path.nuget.packages" value="${path.base}/../dist-all/NuGet" dynamic="true"/>
<property name="symbols" value="false" />
<target name="Push">
<foreach item="File" property="filename">
<in>
<items>
<include name="${path.nuget.packages}/*.nupkg" unless="${symbols}" />
<include name="${path.nuget.packages}/*.symbols.nupkg" if="${symbols}" />
<exclude name="${path.nuget.packages}/*.symbols.nupkg" unless="${symbols}" />
</items>
</in>
<do>
<echo message="${path.tools.nuget}" />
<echo message="${filename}" />
<exec program="${path.tools.nuget}"
commandline="push ${filename}"
failonerror="false"/>
</do>
</foreach>
</target>
</project>