OPENNLP-497 Fixed maven script to build distributions
fixed [WARNING] /opennlp-similarity/src/main/java/opennlp/tools/nl2code/NL2ObjCreateAssign.java:210: warning: unmappable character for encoding UTF-8
diff --git a/opennlp-similarity/src/main/java/opennlp/tools/nl2code/NL2Obj.java b/opennlp-similarity/src/main/java/opennlp/tools/nl2code/NL2Obj.java
index 64af43a..736eb35 100644
--- a/opennlp-similarity/src/main/java/opennlp/tools/nl2code/NL2Obj.java
+++ b/opennlp-similarity/src/main/java/opennlp/tools/nl2code/NL2Obj.java
@@ -1,3 +1,19 @@
+/*

+ * Licensed to the Apache Software Foundation (ASF) under one or more

+ * contributor license agreements.  See the NOTICE file distributed with

+ * this work for additional information regarding copyright ownership.

+ * The ASF licenses this file to You 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.

+ */

 package opennlp.tools.nl2code;

 

 import java.util.ArrayList;

diff --git a/opennlp-similarity/src/main/java/opennlp/tools/nl2code/NL2ObjCreateAssign.java b/opennlp-similarity/src/main/java/opennlp/tools/nl2code/NL2ObjCreateAssign.java
index c97b9ec..706e8f6 100644
--- a/opennlp-similarity/src/main/java/opennlp/tools/nl2code/NL2ObjCreateAssign.java
+++ b/opennlp-similarity/src/main/java/opennlp/tools/nl2code/NL2ObjCreateAssign.java
@@ -1,3 +1,19 @@
+/*

+ * Licensed to the Apache Software Foundation (ASF) under one or more

+ * contributor license agreements.  See the NOTICE file distributed with

+ * this work for additional information regarding copyright ownership.

+ * The ASF licenses this file to You 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.

+ */

 package opennlp.tools.nl2code;

 

 import java.util.ArrayList;

@@ -51,8 +67,6 @@
     System.out.println("      === "+actionWithObject);

 

     for(ParseTreeChunk verbChunk: actionWithObject){

-      ObjectPhrase oPhrase = new ObjectPhrase();

-

       List<String> lems = verbChunk.getLemmas();

       String declarativeAction = verbChunk.getLemmas().get(0).toLowerCase();

       if (declarativeAction.equals("define")){

@@ -207,8 +221,8 @@
         "Define text attribute and name it m_name. ",

         "Define double attribute and name it m_salary.",

         "Create array of objects of class Employee for 10 elements, name the object as workforce.",

-        "Assign the first element in array workforce: m_name=”Boss”",

-        "Assign the second element in array workforce: m_name=”His wife”",

+        "Assign the first element in array workforce: m_name=\"Boss\"",

+        "Assign the second element in array workforce: m_name=\"His wife\"",

        //  "Comment: We just started our small business company and expect to hire 8 more people soon.",

         "Set for all elements in array workforce: m_salary=0 ",

         "Print the list of all m_name attributes for workforce."

diff --git a/opennlp-similarity/src/main/java/opennlp/tools/nl2code/ObjectControlOp.java b/opennlp-similarity/src/main/java/opennlp/tools/nl2code/ObjectControlOp.java
index fd59d49..4bad22a 100644
--- a/opennlp-similarity/src/main/java/opennlp/tools/nl2code/ObjectControlOp.java
+++ b/opennlp-similarity/src/main/java/opennlp/tools/nl2code/ObjectControlOp.java
@@ -1,3 +1,19 @@
+/*

+ * Licensed to the Apache Software Foundation (ASF) under one or more

+ * contributor license agreements.  See the NOTICE file distributed with

+ * this work for additional information regarding copyright ownership.

+ * The ASF licenses this file to You 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.

+ */

 package opennlp.tools.nl2code;

 

 public class ObjectControlOp {

diff --git a/opennlp-similarity/src/main/java/opennlp/tools/nl2code/ObjectPhrase.java b/opennlp-similarity/src/main/java/opennlp/tools/nl2code/ObjectPhrase.java
index c4acf89..ed15b4b 100644
--- a/opennlp-similarity/src/main/java/opennlp/tools/nl2code/ObjectPhrase.java
+++ b/opennlp-similarity/src/main/java/opennlp/tools/nl2code/ObjectPhrase.java
@@ -1,3 +1,19 @@
+/*

+ * Licensed to the Apache Software Foundation (ASF) under one or more

+ * contributor license agreements.  See the NOTICE file distributed with

+ * this work for additional information regarding copyright ownership.

+ * The ASF licenses this file to You 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.

+ */

 package opennlp.tools.nl2code;

 

 import java.util.ArrayList;

diff --git a/opennlp-similarity/src/main/java/opennlp/tools/nl2code/ObjectPhraseListForSentence.java b/opennlp-similarity/src/main/java/opennlp/tools/nl2code/ObjectPhraseListForSentence.java
index 3a1dccf..bf2ba37 100644
--- a/opennlp-similarity/src/main/java/opennlp/tools/nl2code/ObjectPhraseListForSentence.java
+++ b/opennlp-similarity/src/main/java/opennlp/tools/nl2code/ObjectPhraseListForSentence.java
@@ -1,3 +1,19 @@
+/*

+ * Licensed to the Apache Software Foundation (ASF) under one or more

+ * contributor license agreements.  See the NOTICE file distributed with

+ * this work for additional information regarding copyright ownership.

+ * The ASF licenses this file to You 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.

+ */

 package opennlp.tools.nl2code;

 

 import java.util.ArrayList;