Skip to content

Commit

Permalink
Updated compile-examples.sh to preserve package-info.java in the exam…
Browse files Browse the repository at this point in the history
…ples' generated folders, and added deleted package-info.java files.
  • Loading branch information
alfonsonishikawa committed Mar 17, 2019
1 parent 6ce47dc commit 5ebd0e7
Show file tree
Hide file tree
Showing 6 changed files with 94 additions and 1 deletion.
12 changes: 12 additions & 0 deletions bin/compile-examples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ DIR=$GORA_HOME/$MODULE/src/examples/avro/
OUTDIR=$GORA_HOME/$MODULE/src/examples/java
GORA_BIN=$GORA_HOME/bin/gora

# Preserve pacakge-info.java
mv $OUTDIR/org/apache/gora/examples/generated/package-info.java $OUTDIR/org/apache/gora/examples/generated-package-info.java.bck
rm -r $OUTDIR/org/apache/gora/examples/generated/*
mv $OUTDIR/org/apache/gora/examples/generated-package-info.java.bck $OUTDIR/org/apache/gora/examples/generated/package-info.java

for f in `ls $DIR` ; do
echo "Compiling $DIR$f"
Expand All @@ -52,7 +55,10 @@ DIR=$GORA_HOME/$MODULE/src/main/avro/
OUTDIR=$GORA_HOME/$MODULE/src/main/java
GORA_BIN=$GORA_HOME/bin/gora

# Preserve pacakge-info.java
mv $OUTDIR/org/apache/gora/goraci/generated/package-info.java $OUTDIR/org/apache/gora/goraci/generated-package-info.java.bck
rm -r $OUTDIR/org/apache/gora/goraci/generated/*
mv $OUTDIR/org/apache/gora/goraci/generated-package-info.java.bck $OUTDIR/org/apache/gora/goraci/generated/package-info.java

for f in `ls $DIR` ; do
echo "Compiling $DIR$f"
Expand All @@ -68,7 +74,10 @@ DIR=$GORA_HOME/$MODULE/src/main/avro/
OUTDIR=$GORA_HOME/$MODULE/src/main/java
GORA_BIN=$GORA_HOME/bin/gora

# Preserve pacakge-info.java
mv $OUTDIR/org/apache/gora/tutorial/log/generated/package-info.java $OUTDIR/org/apache/gora/tutorial/log/generated-package-info.java.bck
rm -r $OUTDIR/org/apache/gora/tutorial/log/generated/*
mv $OUTDIR/org/apache/gora/tutorial/log/generated-package-info.java.bck $OUTDIR/org/apache/gora/tutorial/log/generated/package-info.java

for f in `ls $DIR` ; do
echo "Compiling $DIR$f"
Expand All @@ -83,7 +92,10 @@ DIR=$GORA_HOME/$MODULE/src/examples/avro/
OUTDIR=$GORA_HOME/$MODULE/src/examples/java
GORA_BIN=$GORA_HOME/bin/gora

# Preserve pacakge-info.java
mv $OUTDIR/org/apache/gora/cassandra/example/generated/AvroSerialization/package-info.java $OUTDIR/org/apache/gora/cassandra/example/generated/generated-package-info.java.bck
rm -r $OUTDIR/org/apache/gora/cassandra/example/generated/AvroSerialization/*
mv $OUTDIR/org/apache/gora/cassandra/example/generated/generated-package-info.java.bck $OUTDIR/org/apache/gora/cassandra/example/generated/AvroSerialization/package-info.java

for f in `ls $DIR` ; do
echo "Compiling $DIR$f"
Expand Down
2 changes: 1 addition & 1 deletion conf/log4j.properties
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ log4j.threshhold=ALL
log4j.rootLogger=${gora.root.logger}

#special logging requirements for some commandline tools
log4j.logger.org.apache.gora.compiler.GoraCompiler=INFO,console
log4j.logger.org.apache.gora.compiler.GoraCompiler=INFO
log4j.logger.org.apache.avro.specific.SpecificCompiler=INFO,console
log4j.logger.org.apache.gora.dynamodb.compiler.GoraDynamoDBCompiler=DEBUG,console
log4j.logger.org.apache.gora.tutorial.log.LogManager=INFO,console
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/**
* 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.
*/
/**
* This package contains generated example persistent classes.
*/
package org.apache.gora.cassandra.example.generated.AvroSerialization;
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/**
* 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.
*/
/**
* This package contains generated example persistent classes.
*/
package org.apache.gora.examples.generated;
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/**
* 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.
*/
/**
* This package contains generated example persistent classes for use
* within GoraCI.
*/
package org.apache.gora.goraci.generated;
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/**
* 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.
*/
/**
* This package contains official tutorial related example persistent classes .
*/
package org.apache.gora.tutorial.log.generated;

0 comments on commit 5ebd0e7

Please sign in to comment.