Skip to content

Commit 27496b8

Browse files
committed
Merge branch 'development' into occupancy
2 parents 1606f42 + f53aab1 commit 27496b8

3 files changed

Lines changed: 25 additions & 22 deletions

File tree

‎Makefile‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# this is a simple Makefile meant for developers' convenience
2+
# - it only has the most common build commands we use
3+
# - for any other build command, please use `./build-coatjava.sh`
4+
5+
# convert `make` arg `-j#` -> `mvn` arg `-T#`, if provided
6+
JOBS := $(patsubst -j%,%,$(filter -j%,$(MAKEFLAGS)))
7+
THREADS := $(if $(strip $(JOBS)),-T$(JOBS),)
8+
9+
BUILD := ./build-coatjava.sh
10+
11+
.PHONY: default all clean clara
12+
13+
.DEFAULT_GOAL := default
14+
15+
default:
16+
$(BUILD) $(THREADS)
17+
18+
clean:
19+
$(BUILD) --clean $(THREADS)
20+
21+
clara:
22+
$(BUILD) --clara $(THREADS)
23+
24+
all: clara

‎common-tools/clas-reco/pom.xml‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,6 @@
3636
<classifier>jar-with-dependencies</classifier>
3737
</dependency>
3838

39-
<dependency>
40-
<groupId>org.jlab.coda</groupId>
41-
<artifactId>jtools</artifactId>
42-
<version>2.2</version>
43-
</dependency>
44-
4539
<dependency>
4640
<groupId>cnuphys</groupId>
4741
<artifactId>magfield</artifactId>

‎common-tools/clas-reco/src/main/java/org/jlab/clas/reco/Clas12Types.java‎

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
import org.jlab.clara.base.error.ClaraException;
66
import org.jlab.clara.engine.ClaraSerializer;
77
import org.jlab.clara.engine.EngineDataType;
8-
import org.jlab.clas12.tools.MimeType;
9-
import org.jlab.clas12.tools.property.JPropertyList;
108
import org.jlab.jnp.hipo4.data.Event;
119

1210

@@ -30,22 +28,9 @@ public Object read(ByteBuffer buffer) throws ClaraException {
3028
}
3129
}
3230

33-
public static final EngineDataType EVIO = new EngineDataType(MimeType.EVIO.type(), EngineDataType.BYTES.serializer());
31+
public static final EngineDataType EVIO = new EngineDataType("binary/data-evio", EngineDataType.BYTES.serializer());
3432

3533
public static final EngineDataType HIPO =
3634
new EngineDataType("binary/data-hipo", new HipoSerializer());
3735

38-
public static final EngineDataType PROPERTY_LIST = new EngineDataType(MimeType.PROPERTY_LIST.type(), new ClaraSerializer() {
39-
40-
@Override
41-
public ByteBuffer write(Object data) throws ClaraException {
42-
JPropertyList pl = (JPropertyList) data;
43-
return ByteBuffer.wrap(pl.getStringRepresentation(true).getBytes());
44-
}
45-
46-
@Override
47-
public Object read(ByteBuffer buffer) throws ClaraException {
48-
return new JPropertyList(new String(buffer.array()));
49-
}
50-
});
5136
}

0 commit comments

Comments
 (0)