Hi,

Looks like IDEA rebuilds the project and generates the @db.dialect@ issue.

I tackled it with the following Bash script:

@echo off
> set db=%1
> set module="hibernate-core"
> if not "%2"=="" SET module="hibernate-%2"
> if "%2"=="doc" SET module="documentation"
> set target="d:\Vlad\Work\GitHub\hibernate-orm\%module%\target\"
> IF EXIST %target%\resources\test (
>     del %target%\resources\test\hibernate.properties
> )
> pushd %target%
> cd ..
> gradlew pTR -Pdb=%db%
> popd


It's Windows, but it can be easily translated to Linux bash.

I call it as follows:

> ptr h2

This one prepared hibernate-core for H2

> ptr mysql

This one prepared hibernate-core for MySQL

>  ptr h2 envers

This one prepared hibernate-envers for H2

I usually run it from Idea Terminal.

Vlad

On Thu, Oct 12, 2017 at 3:22 PM, Steve Ebersole <st...@hibernate.org> wrote:

> I just upgraded to IntelliJ 2017.3 EAP and am back to this frustrating
> "Dialect class not found: @db.dialect@" problem.  I run the
> `processTestResources` (or `compile`, does not matter) and then when I try
> to run a test in the IDE I get this error.
>
> What is the magic incantation I am missing?
> _______________________________________________
> hibernate-dev mailing list
> hibernate-dev@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev
>
_______________________________________________
hibernate-dev mailing list
hibernate-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev

Reply via email to