-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
67 changed files
with
4,473 additions
and
1,136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
TODO: | ||
============== | ||
|
||
- Upgrade to Commons Configuration 2.x | ||
|
||
- Upgrade to Apache Velocity 2.x when available in Maven. | ||
|
||
- Modify Jar copier to handle cases where snapshot are timestamped instead and | ||
not being considered the latest when they should. Like: | ||
norconex-commons-lang-1.13.0-20170328.184247-17.jar vs | ||
norconex-commons-lang-1.13.0-SNAPSHOT.jar | ||
https://github.com/Norconex/collector-http/issues/331#issuecomment-290196986 | ||
|
||
- Consider splitting Properties by \u001e by default (record separator). | ||
|
||
- Redo DurationUtil to be more flexible (using fluid builder approach. | ||
or check Apache or Java 8 equivalent classes if they can be made as flexible. | ||
Look at: | ||
https://commons.apache.org/proper/commons-lang/javadocs/api-3.5/index.html?org/apache/commons/lang3/time/DurationFormatUtils.html | ||
http://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatterBuilder.html | ||
http://joda-time.sourceforge.net/apidocs/org/joda/time/format/PeriodFormatterBuilder.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
@echo off | ||
REM Copyright 2017 Norconex Inc. | ||
REM | ||
REM Licensed under the Apache License, Version 2.0 (the "License"); | ||
REM you may not use this file except in compliance with the License. | ||
REM You may obtain a copy of the License at | ||
REM | ||
REM http://www.apache.org/licenses/LICENSE-2.0 | ||
REM | ||
REM Unless required by applicable law or agreed to in writing, software | ||
REM distributed under the License is distributed on an "AS IS" BASIS, | ||
REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
REM See the License for the specific language governing permissions and | ||
REM limitations under the License. | ||
cd %~dp0 | ||
|
||
echo. | ||
echo PLEASE READ CAREFULLY | ||
echo. | ||
echo To install this component and its dependencies into another product, | ||
echo please specify the target product directory where libraries (.jar files) | ||
echo can be found. | ||
echo. | ||
echo This is often a "lib" directory. For example, to install this component | ||
echo into the Norconex HTTP Collector, specify the full path to the Collector | ||
echo "lib" directory, which may look somewhat like this: | ||
echo. | ||
echo C:\MyProject\norconex-collector-http-x.x.x\lib | ||
echo. | ||
echo If .jar duplicates are found, you will be asked how you wish to deal with | ||
echo them. It is recommended to try keep most recent versions upon encountering | ||
echo version conflicts. When in doubt, simply choose the default option. | ||
echo. | ||
|
||
java -Dfile.encoding=UTF8 -cp "./lib/*;../lib/*" com.norconex.commons.lang.jar.JarCopier ./lib | ||
|
||
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/bin/sh | ||
# Copyright 2017 Norconex Inc. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
cd $(dirname $0) | ||
|
||
echo "" | ||
echo "PLEASE READ CAREFULLY" | ||
echo "" | ||
echo "To install this component and its dependencies into another product," | ||
echo "please specify the target product directory where libraries (.jar files)" | ||
echo "can be found." | ||
echo "" | ||
echo "This is often a \"lib\" directory. For example, to install this component" | ||
echo "into the Norconex HTTP Collector, specify the full path to the Collector" | ||
echo "\"lib\" directory, which may look somewhat like this:" | ||
echo "" | ||
echo " /myProject/norconex-collector-http-x.x.x/lib" | ||
echo "" | ||
echo "If .jar duplicates are found, you will be asked how you wish to deal with" | ||
echo "them. It is recommended to try keep most recent versions upon encountering" | ||
echo "version conflicts. When in doubt, simply choose the default option." | ||
echo "" | ||
|
||
java -Dfile.encoding=UTF8 -cp "./lib/*:../lib/*" com.norconex.commons.lang.jar.JarCopier "./lib" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<!-- | ||
Copyright 2017 Norconex Inc. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
--> | ||
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd"> | ||
<id>resources</id> | ||
<formats> | ||
<format>zip</format> | ||
</formats> | ||
<includeBaseDirectory>false</includeBaseDirectory> | ||
<fileSets> | ||
<fileSet> | ||
<directory>${basedir}/src/main/assembly/</directory> | ||
<includes> | ||
<include>install.*</include> | ||
<include>scripts/**</include> | ||
</includes> | ||
<outputDirectory>/</outputDirectory> | ||
</fileSet> | ||
</fileSets> | ||
</assembly> |
Oops, something went wrong.