import-impl

Clone Tools
  • last updated a few minutes ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
NOJIRA SAK-17095

git-svn-id: https://source.sakaiproject.org/svn/archive/trunk@67585 66ffb92e-73f9-0310-93c1-f5514f145a0a

  1. … 50 more files in changeset.
SAK-17095 pom clean up so we can see whats going on

git-svn-id: https://source.sakaiproject.org/svn/archive/trunk@67584 66ffb92e-73f9-0310-93c1-f5514f145a0a

  1. … 6 more files in changeset.
SAK-16013 add missing ECL-2.0 copyright notice.

git-svn-id: https://source.sakaiproject.org/svn/archive/trunk@60056 66ffb92e-73f9-0310-93c1-f5514f145a0a

  1. … 2 more files in changeset.
SAK-15589 update copyright years

git-svn-id: https://source.sakaiproject.org/svn/archive/trunk@59673 66ffb92e-73f9-0310-93c1-f5514f145a0a

  1. … 36 more files in changeset.
making the XML Document that the parser returns for imsmanifest.xml namespace-aware.

git-svn-id: https://source.sakaiproject.org/svn/archive/trunk@57149 66ffb92e-73f9-0310-93c1-f5514f145a0a

small changes to importables needed by the Blackboard 5.5 parser

git-svn-id: https://source.sakaiproject.org/svn/archive/trunk@57006 66ffb92e-73f9-0310-93c1-f5514f145a0a

SAK-14957 update <version> to 2.7.0-SNAPSHOT

git-svn-id: https://source.sakaiproject.org/svn/archive/trunk@54932 66ffb92e-73f9-0310-93c1-f5514f145a0a

  1. … 12 more files in changeset.
http://bugs.sakaiproject.org/jira/browse/SAK-14386 NO 49,239: http://qa1-nl.sakaiproject.org/codereview/trunk/api/org/sakaiproject/importer/impl/ZipFileParser.java.html#205

Need a finally or is.close may not be called.

Like very much the comments

protected byte[] getBytesFromFile(File file) throws IOException {

205 InputStream is = new FileInputStream(file);

206

207 // Get the size of the file

208 long length = file.length();

209

210 // You cannot create an array using a long type.

211 // It needs to be an int type.

212 // Before converting to an int type, check

213 // to ensure that file is not larger than Integer.MAX_VALUE.

214 if (length > Integer.MAX_VALUE) {

215 // File is too large

216 }

217

218 // Create the byte array to hold the data

219 byte[] bytes = new byte[(int)length];

220

221 // Read in the bytes

222 int offset = 0;

223 int numRead = 0;

224 while (offset < bytes.length

225 && (numRead=is.read(bytes, offset, bytes.length-offset)) >= 0) {

226 offset += numRead;

227 }

228

229 // Ensure all the bytes have been read in

230 if (offset < bytes.length) {

231 throw new IOException("Could not completely read file "+file.getName());

232 }

233

234 // Close the input stream and return bytes

235 is.close();

236 return bytes;

237 }

git-svn-id: https://source.sakaiproject.org/svn/archive/trunk@52595 66ffb92e-73f9-0310-93c1-f5514f145a0a

http://bugs.sakaiproject.org/jira/browse/SAK-13898 No 48,238: http://qa1-nl.sakaiproject.org/codereview/trunk/api/org/sakaiproject/importer/impl/ZipFileParser.java.html#128

On IOException loses ZipStream and FileOutputStream, probably need a try catch around the while loop.

I personally do not like Exception and printStackTrace.

126 File zipEntryFile = new File(dir.getPath() + "/" + zipName.replace("\\", "/"));

127 if (!zipEntryFile.isDirectory()) {

128 FileOutputStream ofile = new FileOutputStream(zipEntryFile);

129 byte[] buffer = new byte[1024 * 10];

130 int bytesRead;

131 while ((bytesRead = zipStream.read(buffer)) != -1)

132 {

133 ofile.write(buffer, 0, bytesRead);

134 }

135

136 ofile.close();

137 }

138 zipStream.closeEntry();

139 entry = zipStream.getNextEntry();

140 }

141 }

142 catch (Exception e5)

143 {

144 // todo handle errors

145 e5.printStackTrace();

146 }

git-svn-id: https://source.sakaiproject.org/svn/archive/trunk@52594 66ffb92e-73f9-0310-93c1-f5514f145a0a

http://bugs.sakaiproject.org/jira/browse/SAK-13898 No 46:

http://qa1-nl.sakaiproject.org/codereview/trunk/api/org/sakaiproject/importer/impl/IMSFileParser.java.html#63

61 try {

62 docBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder();

63 InputStream fis = new FileInputStream(absolutepathToManifest);

64 this.archiveManifest = (Document) docBuilder.parse(fis);

65 } catch (Exception e) {

66 e.printStackTrace();

67 }

git-svn-id: https://source.sakaiproject.org/svn/archive/trunk@52591 66ffb92e-73f9-0310-93c1-f5514f145a0a

Removing dependency on Redirected Kernel Poms in preparation for release

git-svn-id: https://source.sakaiproject.org/svn/archive/trunk@51485 66ffb92e-73f9-0310-93c1-f5514f145a0a

  1. … 8 more files in changeset.
SAK-12938

Fix non-printing characters in copyright.

git-svn-id: https://source.sakaiproject.org/svn/archive/trunk@51318 66ffb92e-73f9-0310-93c1-f5514f145a0a

  1. … 36 more files in changeset.
SAK-14122 remove references to $sakai.version

git-svn-id: https://source.sakaiproject.org/svn/archive/trunk@50569 66ffb92e-73f9-0310-93c1-f5514f145a0a

  1. … 9 more files in changeset.
SAK-13938 change Sakai version number to 2.6.0RC1-SNAPSHOT

git-svn-id: https://source.sakaiproject.org/svn/archive/trunk@50434 66ffb92e-73f9-0310-93c1-f5514f145a0a

  1. … 12 more files in changeset.
SAK-12938

git-svn-id: https://source.sakaiproject.org/svn/archive/trunk@50146 66ffb92e-73f9-0310-93c1-f5514f145a0a

  1. … 26 more files in changeset.
SAK-12938

git-svn-id: https://source.sakaiproject.org/svn/archive/trunk@50067 66ffb92e-73f9-0310-93c1-f5514f145a0a

  1. … 35 more files in changeset.
K1 Integration Commit. Integrated Kernel 1 into Core and replaces core source tree with maven repo downloads

git-svn-id: https://source.sakaiproject.org/svn/archive/trunk@49698 66ffb92e-73f9-0310-93c1-f5514f145a0a

  1. … 8 more files in changeset.
SAK-10459 return a new parser instance for each use, to avoid threading problems of shared state.

git-svn-id: https://source.sakaiproject.org/svn/archive/trunk@41774 66ffb92e-73f9-0310-93c1-f5514f145a0a

  1. … 3 more files in changeset.
http://jira.sakaiproject.org/jira/browse/SAK-12232 Updated to SNAPSHOT build

git-svn-id: https://source.sakaiproject.org/svn/archive/trunk@38269 66ffb92e-73f9-0310-93c1-f5514f145a0a

  1. … 12 more files in changeset.
Removing Maven 1 Build

git-svn-id: https://source.sakaiproject.org/svn/archive/trunk@32808 66ffb92e-73f9-0310-93c1-f5514f145a0a

  1. … 11 more files in changeset.
All child poms now inherit from the project base All scope provided removed Removed all dependencies from pack except the module-impl samigo-qti still in import-pack

git-svn-id: https://source.sakaiproject.org/svn/archive/trunk@32356 66ffb92e-73f9-0310-93c1-f5514f145a0a

  1. … 12 more files in changeset.
folding in a slew of heretofore uncommitted updates.

git-svn-id: https://source.sakaiproject.org/svn/archive/trunk@31987 66ffb92e-73f9-0310-93c1-f5514f145a0a

  1. … 3 more files in changeset.
solved a host of problems caused by an archive from Lason, Inc. that was zipped with an additional directory between the root and the manifest.

git-svn-id: https://source.sakaiproject.org/svn/archive/trunk@28942 66ffb92e-73f9-0310-93c1-f5514f145a0a

  1. … 2 more files in changeset.
fixed the build I broke. All I needed was a fabulous One Line Interface.

git-svn-id: https://source.sakaiproject.org/svn/archive/trunk@28938 66ffb92e-73f9-0310-93c1-f5514f145a0a

  1. … 3 more files in changeset.
fixed sorting problem, working on learning application resource

git-svn-id: https://source.sakaiproject.org/svn/archive/trunk@28932 66ffb92e-73f9-0310-93c1-f5514f145a0a

  1. … 6 more files in changeset.
getting Common Cartridge up to date and stuff.

git-svn-id: https://source.sakaiproject.org/svn/archive/trunk@28930 66ffb92e-73f9-0310-93c1-f5514f145a0a

  1. … 4 more files in changeset.
Maven 2 Pom Files

git-svn-id: https://source.sakaiproject.org/svn/archive/trunk@19569 66ffb92e-73f9-0310-93c1-f5514f145a0a

  1. … 13 more files in changeset.
svn propset svn:keywords "Date Revision Author HeadURL Id"

git-svn-id: https://source.sakaiproject.org/svn/archive/trunk@17726 66ffb92e-73f9-0310-93c1-f5514f145a0a

  1. … 19 more files in changeset.
fixed copyright in java files for archive

git-svn-id: https://source.sakaiproject.org/svn/archive/trunk@17722 66ffb92e-73f9-0310-93c1-f5514f145a0a

  1. … 13 more files in changeset.
svn propset svn:eol-style native

git-svn-id: https://source.sakaiproject.org/svn/archive/trunk@14698 66ffb92e-73f9-0310-93c1-f5514f145a0a

  1. … 2 more files in changeset.