Author: sebb
Date: Fri Dec  1 15:26:50 2023
New Revision: 1914261

URL: http://svn.apache.org/viewvc?rev=1914261&view=rev
Log:
Try creating a download soft-link for via Ant

Modified:
    commons/cms-site/trunk/pom.xml

Modified: commons/cms-site/trunk/pom.xml
URL: 
http://svn.apache.org/viewvc/commons/cms-site/trunk/pom.xml?rev=1914261&r1=1914260&r2=1914261&view=diff
==============================================================================
--- commons/cms-site/trunk/pom.xml (original)
+++ commons/cms-site/trunk/pom.xml Fri Dec  1 15:26:50 2023
@@ -98,6 +98,44 @@
           </execution>
         </executions>
       </plugin>
+      <plugin>
+        <!-- 
+          Create soft-link NAME/download_NAME.html => 
proper/commons-NAME/download_NAME.html
+          This allows NAME/download_NAME.cgi to work
+        -->
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-antrun-plugin</artifactId>
+        <dependencies>
+          <dependency>
+            <groupId>org.apache.ant</groupId>
+            <artifactId>ant</artifactId>
+            <version>1.10.14</version>
+          </dependency>
+        </dependencies>
+        <executions>
+          <execution>
+            <id>chmod</id>
+            <goals>
+              <goal>run</goal>
+            </goals>
+            <phase>site</phase>
+            <configuration>
+              <target>
+                <macrodef name="mklink">
+                  <attribute name="name"/>
+                  <sequential>
+                    <echo>name=@{name}</echo>
+                    <mkdir dir="${project.reporting.outputDirectory}/@{name}"/>
+                    <symlink 
link="${project.reporting.outputDirectory}/@{name}/download_@{name}.html" 
resource="../proper/commons-@{name}/download_@{name}.html" overwrite="true"/>
+                  </sequential>
+                </macrodef>
+                <!-- Initial trial -->
+                <mklink name="net"/>
+              </target>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
     </plugins>
     <pluginManagement>
       <plugins>


Reply via email to