Thomas Betous

0

votes
0

answer
3

views

Is there a way to customize github check with CircleCI

I am currently working on the CI of project and I deploy a preview for each github branch that pass all integration tests. My CI workflow is executed by CircleCI and I can see the progression on github with Github checks. It works pretty nice but description does not reflect what really happens. For...
Thomas Betous
1

votes
1

answer
1.2k

views

Maven filtering doesn't work with properties in pom.xml

I am trying to configure my pom.xml file in order to replace placeolders in a configuration file for Spring. Here is my pom.xml : 4.0.0 tbetous.spring blog learning-tp-blog war 1.0.0-BUILD-SNAPSHOT 1.6 dev 3.1.1.RELEASE 1.6.10 1.6.6 [ALL DEPENDENCIES] src/main/webapp true WEB-INF/spring/application-...
Thomas Betous
1

votes
1

answer
648

views

How to add arguments with the ScriptEngineManager method getEngineByName(“nashorn”)?

I am using Nashorn with Java API 8. I would like to secure javascript execution to be sure the code can't call Java package. It is possible as follow : NashornScriptEngineFactory factory = new NashornScriptEngineFactory(); ScriptEngine engine = factory.getScriptEngine('-strict', '--no-java', '--no-...
Thomas Betous
1

votes
1

answer
297

views

Why does NashornScriptEngineFactory haven't the possibility to get a ScriptEngine with only ClassFilter and args?

I am currently using Nashorn in a project and I would like to create a ScriptEngine from NashornScriptEngineFactory with only a ClassFilter in order to secure my script to avoid unexpected call to some libraries. And I would like also add arguments to the factory (here --strict in order to execute a...
Thomas Betous
1

votes
2

answer
3.1k

views

FreeMarker With Eclipse Luna

I am currently trying to set Eclipse Luna for FreeMarker. I have installed FreeMarker IDE which is provided by JBoss : http://download.jboss.org/jbosstools/updates/stable/luna/ When I create and edit an FTL file, the syntax is highlighted, however the auto-completion and the syntax error indicator d...
Thomas Betous
3

votes
2

answer
586

views

What is the magic behind Field @Autowired

I am currently improving my Spring knowledge. I wonder what really happens when I use Spring annotation @Autowire on a field. Here is a piece of code : OutputHelper file @Component public class OutputHelper { @Autowired @Qualifier('csvOutputGenerator') private IOutputGenerator outputGenerator; publ...
Thomas Betous
2

votes
2

answer
219

views

How to use static constructor reference with a three parameters Java 8 Function (without make TriFunction)?

I am currently playing with Java 8 and I found a problem with Function. I would like ton know if there is a way to use function reference (name::methode) with a Function with tree parameters without declare a new functional interface (i.e. TriFunction). I tried with currying way, but it doesn't wor...
Thomas Betous
2

votes
1

answer
1.4k

views

Cannot find module 'rxjs/testing' from 'jasmine-marbles.umd.js'

I am currently want to test my effects with ngrx/effects. I followed the markdown but I have an error when I want run my test. Cannot find module 'rxjs/testing' from 'jasmine-marbles.umd.js' Here is my code (For the moment I did not do expectations, I just want my test runs) : import { TestBed } fr...
Thomas Betous
2

votes
2

answer
1.3k

views

How to remove styles of an Angular2 component?

I am currently using ng2-smart-table. This component is actually have its own style : [...] selector: 'ng2-smart-table', styles: [':host /deep/ *{box-sizing:border-box;font-family:\'Open Sans\',\'Helvetica Neue\',Helvetica,Arial,sans-serif}:host /deep/ button,:host /deep/ input,:host /deep/ optgroup...
Thomas Betous
2

votes
0

answer
282

views

Is it possible to disable field but apply control with reactive form in Angular?

I have a form in my application and I display a field which is dynamically and asynchronously filled. I want to disable this field but I want to apply the control because my form is only valid if this value is not empty (required). I have used this code : this.myForm.get(myField).disable() In my pag...
Thomas Betous
6

votes
1

answer
691

views

serialized lambda and no serialVersionUID?

I'm trying to learn how the serialization works with Java and its lastest version. I'm trying to serialize a lambda like this : Runnable r = (Runnable & Serializable)() -> {System.out.println('This is a test');}; But I notice that I have no warning about the absence of a serialVersionUID variable. I...
Thomas Betous
3

votes
1

answer
470

views

How to deserialize an object containing a generic type with a builder Jackson?

I'm currently developing a small web application with dropwizard. Another application can send several types of message to my application. These messages have a common base and a specific content depending of the type of message. Here is the common base of messages: @JsonDeserialize(builder = BaseMe...
Thomas Betous
2

votes
0

answer
104

views

npm install change package-lock.json with VSCode differently that with terminal

I work with a coworker on a Node.js project. At each commit, even if not any dependencies were added, we have differences in package-lock.json. The only difference is I use npm with a Ubuntu terminal, and he uses the embedded VSCode terminal. We use the same npm and Node.js version. When I generate...
Thomas Betous