|
14 | 14 | </then>
|
15 | 15 | </if>
|
16 | 16 |
|
| 17 | + <resolvepath propertyName="uikitdir" file="${uikitdir}" /> |
| 18 | + |
17 | 19 | <echo msg="uikit directory set to ${uikitdir}" />
|
18 | 20 |
|
19 | 21 | <!-- Load path properties -->
|
|
62 | 64 | <!-- Target: JEvents Generic Folder -->
|
63 | 65 | <!-- ================================================== -->
|
64 | 66 | <target name="build-generic" description="Build Generic JEvents Folder ">
|
65 |
| - <echo msg="Building Gemeric Folder ${genericname}..."/> |
| 67 | + <echo msg="Building Generic Folder ${genericname} : ../${genericfolder}"/> |
| 68 | + <!-- |
66 | 69 | <copy todir="${builddir}/${genericfolder}">
|
67 | 70 | <fileset dir="../${genericfolder}">
|
68 | 71 | <include name="**"></include>
|
|
71 | 74 | </fileset>
|
72 | 75 | </copy>
|
73 | 76 |
|
| 77 | + Using rsync and safe-links ignores softlinks outside of the current tree! |
| 78 | + --> |
| 79 | + |
| 80 | + <filesync destinationDir="${builddir}/${genericfolder}" |
| 81 | + rsyncPath="/usr/bin/rsync" |
| 82 | + sourceDir="../${genericfolder}" |
| 83 | + excludeFile="excludedfiles.build" |
| 84 | + options="-rpKz --safe-links" |
| 85 | + /> |
| 86 | + |
74 | 87 | <phingcall target="sedreplace">
|
75 | 88 | <property name="name" value="${genericfolder}" />
|
76 | 89 | </phingcall>
|
|
107 | 120 |
|
108 | 121 | <!-- delete dist files -->
|
109 | 122 | <if>
|
110 |
| - <available file='${uikitdir}/dist/css/uikit.gsl.css' type='file' property="cssexits"/> |
| 123 | + <available file='${uikitdir}/dist/css/uikit.css' type='file' property="cssexits"/> |
111 | 124 | <then>
|
112 |
| - <delete file="${uikitdir}/dist/css/uikit.gsl.css" failonerror="false" /> |
| 125 | + <delete file="${uikitdir}/dist/css/uikit.css" failonerror="false" /> |
| 126 | + <delete file="${uikitdir}/dist/css/uikit-core.css" failonerror="false" /> |
| 127 | + <delete file="${uikitdir}/dist/css/uikit-rtl.css" failonerror="false" /> |
| 128 | + <delete file="${uikitdir}/dist/css/uikit.css" failonerror="false" /> |
113 | 129 | <delete file="${uikitdir}/dist/css/uikit.gsl.min.css" failonerror="false" />
|
114 | 130 | </then>
|
115 | 131 | </if>
|
|
128 | 144 | build.js core lightbox -d // builds uikit-core and the lightbox, skipping the minification
|
129 | 145 |
|
130 | 146 | //-->
|
131 |
| - <exec command="yarn compile -d" dir="${uikitdir}" outputProperty="yarn.output" > |
| 147 | + <!-- execute yarn scripts there --> |
| 148 | + <exec command="yarn compile" dir="${uikitdir}" outputProperty="yarn.output" > |
132 | 149 | </exec>
|
133 | 150 | <echo msg="${yarn.output}" />
|
134 | 151 | <exec command="yarn prefix -p gsl " dir="${uikitdir}" outputProperty="yarn.output2" >
|
135 | 152 | </exec>
|
136 | 153 | <echo msg="${yarn.output2}" />
|
137 |
| - <exec command="yarn scope -s 'gsl-scope'" dir="${uikitdir}" outputProperty="yarn.output3" > |
| 154 | + <exec command="yarn scope cleanup" dir="${uikitdir}" outputProperty="yarn.output3" > |
138 | 155 | </exec>
|
139 | 156 | <echo msg="${yarn.output3}" />
|
| 157 | + <exec command="yarn scope -s 'gsl-scope'" dir="${uikitdir}" outputProperty="yarn.output4" > |
| 158 | + </exec> |
| 159 | + <echo msg="${yarn.output4}" /> |
140 | 160 |
|
141 | 161 | <!-- copy the dist files back from uikit repository -->
|
142 | 162 | <copy todir="${rootdir}/component/media" >
|
|
186 | 206 | <property name="zipfile" value="com_jevents.zip" />
|
187 | 207 | </phingcall>
|
188 | 208 |
|
| 209 | + <!-- rsync needs path created already --> |
| 210 | + <mkdir dir="${builddir}/libraries" /> |
189 | 211 | <phingcall target="build-libraries"/>
|
| 212 | + <mkdir dir="${builddir}/modules" /> |
190 | 213 | <phingcall target="build-modules"/>
|
| 214 | + <mkdir dir="${builddir}/plugins" /> |
191 | 215 | <phingcall target="build-plugins"/>
|
192 | 216 | </target>
|
193 | 217 |
|
|
0 commit comments