Skip to content

Commit

Permalink
Slight tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
ethlo committed Jan 29, 2020
1 parent 821dbd7 commit 6278014
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,6 @@ public class EclipselinkStaticWeaveMojo extends AbstractMojo
@Parameter
private String[] basePackages;

@Parameter(defaultValue = "false")
private boolean skipUpdatePersistenceXml;

@Parameter(defaultValue = "${project.build.outputDirectory}", required = true)
private File source;

Expand All @@ -94,6 +91,8 @@ public class EclipselinkStaticWeaveMojo extends AbstractMojo
@Parameter(defaultValue = "true")
private boolean addClassesToPersistenceFile;

@Parameter(defaultValue = "true")
private boolean updatePersistenceXml;

@Parameter(defaultValue = "false", property = "eclipselink.weave.skip")
private boolean skip;
Expand Down Expand Up @@ -141,7 +140,7 @@ private void processWeaving(ClassLoader classLoader) throws MojoExecutionExcepti
final Set<String> entityClasses = findEntities(allBasePackages, classPath);
getLog().info("Entities found : " + entityClasses.size());

if (! skipUpdatePersistenceXml)
if (updatePersistenceXml)
{
getLog().debug("Updating persistence.xml file");
processPersistenceXml(classLoader, entityClasses);
Expand Down

0 comments on commit 6278014

Please sign in to comment.