Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Code such as the following requires the commons-io dependency:
package org.apache.sysml; import org.apache.sysml.api.jmlc.Connection; import org.apache.sysml.api.jmlc.PreparedScript; public class Example { public static void main(String[] args) throws Exception { Connection conn = new Connection(); PreparedScript script = conn.prepareScript("x=matrix('1 2 3 4',rows=2,cols=2);write(x,'x.csv',format='csv');", new String[] {}, new String[] {}, false); script.executeScript(); conn.close(); } }
Therefore, add commons-io to the bin artifacts and the standalone-jar artifact since these artifacts package the required dependencies.